Slidingmenu Import compilation usage--eclipse and Idea

Source: Internet
Author: User

Many of the applications used are open Source Library Slidingmenu, the effect is good, the following is my use, because recently replaced by the idea (IntelliJ) Editor, Yesterday on the Internet to find all the tutorials are about in the Eclipse Import method, groping the end also to import it successfully and can be referenced, hereby summarizes the two ways to add the IDE , share to everyone, Finally, a brief introduction to the use of the open Source Library.

Figure Slidingmenu slide - search for singers

A Compile-dependent additions:

Because I quote slidingmenu Open Source Library to achieve the effect of side-by-side, import the source code need to follow this method.

Method One: If the Eclipse environment.

1. First import-->existing Android Code into Workspace--->slidingmenulibrary, if the error occurs.


Then remove the android.support.v4.app.FragmentActivity of the import first . Just ignore it.

2. Import zhoujunmusicplayer Project, click properties-->android-->library below, click Add. .

Select slidingmenulibrary, do not tick the is Library

3. Then put the zhoujunmusicplayer to clean , should not appear compile to pass, burn words, directly in Zhoujunmusicplayer under run .

Method Two: If the idea(IntelliJ) editor Environment

1. Import Module---> two items zhoujunmusicplayer and slidingmenulibrary Import go in.

2. Open Project Structure and select the thirdModule Dependency ... ", select slidingmenulibrary . And then determine.

3. If the compilation error occurs, as in Eclipse , follow the same workaround.

Add Open Source Library above cause compilation really can't get through, you can contact me by private messages.

Two Brief introduction of the use of Slidingmenu

1. dynamic code calls using:

Open source Slidingmenu.

Slidingmenu menu = new Slidingmenu (this);

Menu.setmode (Slidingmenu.left); Show from left

Menu.settouchmodeabove (Slidingmenu.touchmode_margin); Show from left Edge

Menu.setshadowwidthres (R.dimen.shadow_width); Shadow width

Menu.setshadowdrawable (r.drawable.fast_seek_progress); Shadow picture

Menu.setbehindoffsetres (R.dimen.slidingmenu_offset); Show layout size

Menu.setfadedegree (0.35f);

Menu.attachtoactivity (this, slidingmenu.sliding_content);

Menu.setmenu (R.layout.artist_search);

2. Static XML Reference method, a bunch of tutorials on the web, almost the same, I will not be cumbersome, can be referenced on GitHub.

Three Open Source Library:

1. slidingmenu Open Source project:https://github.com/jfeinstein10/slidingmenu Slidingmenu-master.zip

2. actionbarsherlock Open Source project:http://actionbarsherlock.com Jakewharton-actionbarsherlock-4.4.0-0-g4a79d53.zip


Original articles, welcome reprint, reproduced please specify: blog.csdn.net/jjzhoujun2010

Dream Fly Sina Weibo: Zhou June Dream_fly


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.