Android Open Source-MenuDrawer

Source: Internet
Author: User

Android Open Source-MenuDrawer

Open Source Address:Https://github.com/SimonVT/android-menudrawer

Introduction:Menudrawer is a framework similar to sliderMenu. It is often used as a setting interface by applications. It uses menu as the setting menu and contentView as the frame of the detailed page, as shown in figure



API details:

********** ***************************** <喎?http: www.bkjia.com kf ware vc " target="_blank" class="keylink"> Quota + CjIuyejWw01lbnXSsy + quota/quota + Cn08YnI + quota + 2r9PQ0Ke1xMf40/I8YnI + quota/cXQts/ response + response/Jz8/response + response/czhuanBy7LLtaW1xDS49re9z/response + cq9PGJyPgphbmRyb2lkOnRoZW1lPQ = "@ style/SampleTheme. right"
2) Modify theme. xml:




3) Modify in style. xml:



* *************************** Custom MenuDrawer ********* ******************************
XML:
The View layer must be defined in net. simonvt. menudrawer. TopDrawer.
The menu page id must be android: id = "@ id/mdMenu"
The homepage id must be android: id = "@ id/mdContent"
Code: Set the manual mode and set the menu width/height
MenuDrawer. setTouchMode (MenuDrawer. TOUCH_MODE_FULLSCREEN );
MenuDrawer. setMenuSize (50 );
Define the indicated position: (the indicator is displayed as specified by theme in the manifest file) menuDrawer. setActiveView (v );


* *************************** MenuDrawer + ViewPager ********* ******************************
Tip: 1) Implement FragmentActivity on the homepage;
2) onPageSelected implementation in onPageChangeListener:
MenuDrawer. setTouchMode (position = 0? MenuDrawer. TOUCH_MODE_FULLSCREEN: MenuDrawer. TOUCH_MODE_NONE );



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.