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 );