Android Open Source Library--slidingmenu left and right slide menu

Source: Internet
Author: User

If I look farther than others, it is because I stand on the shoulders of giants.

GitHub Address: Https://github.com/jfeinstein10/SlidingMenu

Settings: 1, after download as a dependency in the form of adding to the project.2. If you want to integrate Actionbarsherlock, add to Slidingmenu in the form of a dependency and then use it to inheritsherlockactivitiescan be. Use: 1, directly through the code to achieve. 2, through the inheritance slidingactivity realization. 3, directly in the XML layout inside the use. All of the above examples can be found in GitHub for this project, and the relevant functions are explained in detail. Note: 1, Behindoffset and behindwidth These two parameters cannot be set at the same time, otherwise there may be an error. 2, above refers to the upper layer (the main content), behind refers to the background (sliding content) Example: The following list some important functions and roles. SetMode settings mode, including left, right, left and right slide menu. Settouchmodeabove sets the main content of the touch mode, including fullscreen, margin, none. Settouchmodebehind setcontent setting above Viewsetmenu settingsbehind's view
Setsecondarymenu Setting the right side of the slide content
Setbehindoffset sets the margin on the opposite side when the slide content is completely scratched. Setbehindwidth sets the width after which the slide content is scratched. Setbehindscrollscale set the sliding range of the slide content (the left-to-right dynamic effect of the slide-through content in the process, set to 0 the slide content fixed) PS: Some students certainly want to achieve the upper menu sliding, and the bottom content does not understand the effect, that is, the cover drawer effect, but unfortunately slidingmenu this open source control can not be implementedcan useAndroid.support.v4.widget.DrawerLayout achieve this effect, or use another open source controlMenudrawer.



From for notes (Wiz)



Android Open Source Library--slidingmenu left and right slide menu

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.