simple-side-drawer-master

所属分类:菜单
开发工具:Java
文件大小:4220KB
下载次数:11
上传日期:2014-03-04 17:13:52
上 传 者LinhaiZ
说明:  实现抽屉菜单(drawer menu,或者 sliding menu),可以从屏幕左右两边拖动拉出底部菜单。这份类库功能强大,可以设置各种菜单参数,包括菜单边界阴影、菜单拖动 ... 出现的动画等等。还可以将菜单放在ViewPager中。
(Drawer menu)

文件列表:
.classpath (415, 2013-06-02)
.project (375, 2013-06-02)
.settings\org.eclipse.core.resources.prefs (55, 2013-06-02)
.settings\org.eclipse.jdt.core.prefs (587, 2013-06-02)
demo\SimpleSideDrawerExample\.classpath (475, 2014-02-19)
demo\SimpleSideDrawerExample\.project (826, 2013-06-02)
demo\SimpleSideDrawerExample\.settings\org.eclipse.core.resources.prefs (55, 2013-06-02)
demo\SimpleSideDrawerExample\.settings\org.eclipse.jdt.core.prefs (177, 2014-02-20)
demo\SimpleSideDrawerExample\AndroidManifest.xml (736, 2014-02-19)
demo\SimpleSideDrawerExample\bin\AndroidManifest.xml (736, 2014-02-20)
demo\SimpleSideDrawerExample\bin\classes\com\navdrawer\demo\simple\BuildConfig.class (359, 2014-02-20)
demo\SimpleSideDrawerExample\bin\classes\com\navdrawer\demo\simple\MainActivity$1.class (981, 2014-02-20)
demo\SimpleSideDrawerExample\bin\classes\com\navdrawer\demo\simple\MainActivity$2.class (1725, 2014-02-20)
demo\SimpleSideDrawerExample\bin\classes\com\navdrawer\demo\simple\MainActivity.class (1387, 2014-02-20)
demo\SimpleSideDrawerExample\bin\classes\com\navdrawer\demo\simple\R$attr.class (361, 2014-02-21)
demo\SimpleSideDrawerExample\bin\classes\com\navdrawer\demo\simple\R$drawable.class (529, 2014-02-21)
demo\SimpleSideDrawerExample\bin\classes\com\navdrawer\demo\simple\R$id.class (543, 2014-02-21)
demo\SimpleSideDrawerExample\bin\classes\com\navdrawer\demo\simple\R$layout.class (527, 2014-02-21)
demo\SimpleSideDrawerExample\bin\classes\com\navdrawer\demo\simple\R$menu.class (418, 2014-02-21)
demo\SimpleSideDrawerExample\bin\classes\com\navdrawer\demo\simple\R$string.class (534, 2014-02-21)
demo\SimpleSideDrawerExample\bin\classes\com\navdrawer\demo\simple\R$style.class (638, 2014-02-21)
demo\SimpleSideDrawerExample\bin\classes\com\navdrawer\demo\simple\R.class (688, 2014-02-21)
demo\SimpleSideDrawerExample\bin\classes.dex (535864, 2014-02-20)
demo\SimpleSideDrawerExample\bin\dexedLibs\android-support-v4-5fe5ec81e0b83f1172ead7486eb12d1d.jar (135168, 2014-02-20)
demo\SimpleSideDrawerExample\bin\dexedLibs\simple-side-drawer2-31883a6a820d7f9c3571b1e0136f9cb8.jar (6150, 2014-02-20)
demo\SimpleSideDrawerExample\bin\jarlist.cache (120, 2014-02-21)
demo\SimpleSideDrawerExample\bin\res\crunch\drawable-hdpi\ic_action_search.png (409, 2014-02-20)
demo\SimpleSideDrawerExample\bin\res\crunch\drawable-hdpi\ic_launcher.png (4948, 2014-02-20)
demo\SimpleSideDrawerExample\bin\res\crunch\drawable-hdpi\leftbg.9.png (157, 2014-02-20)
demo\SimpleSideDrawerExample\bin\res\crunch\drawable-hdpi\rightbg.9.png (154, 2014-02-20)
demo\SimpleSideDrawerExample\bin\res\crunch\drawable-ldpi\ic_launcher.png (1636, 2014-02-20)
demo\SimpleSideDrawerExample\bin\res\crunch\drawable-ldpi\leftbg.9.png (157, 2014-02-20)
demo\SimpleSideDrawerExample\bin\res\crunch\drawable-ldpi\rightbg.9.png (154, 2014-02-20)
demo\SimpleSideDrawerExample\bin\res\crunch\drawable-mdpi\ic_action_search.png (311, 2014-02-20)
demo\SimpleSideDrawerExample\bin\res\crunch\drawable-mdpi\ic_launcher.png (1965, 2014-02-20)
demo\SimpleSideDrawerExample\bin\res\crunch\drawable-mdpi\leftbg.9.png (157, 2014-02-20)
demo\SimpleSideDrawerExample\bin\res\crunch\drawable-mdpi\rightbg.9.png (154, 2014-02-20)
demo\SimpleSideDrawerExample\bin\res\crunch\drawable-xhdpi\ic_action_search.png (491, 2014-02-20)
... ...

SimpleSideDrawer is an android library to add a drawer navigation into your android application. This library has high affinity with other libraries like ActionBarSherlock or etc. #Easy to add your app a side menu ![Demo image01](https://lh6.googleusercontent.com/-O-AKV6vo4U4/UOHA9PjYA9I/AAAAAAAAQV4/gayCEMA9q9c/s720/simple_side_drawer01.png) ![Demo image02](https://lh5.googleusercontent.com/-hoVDio62tgc/UOHBBU7K0LI/AAAAAAAAQWE/rEkvI2NgNl4/s720/simple_side_drawer02.png) ###Step1: Add the library Add the jar library to your application project ###Step2: Set up the side menu Add the 2 lines under the onCreate method in an Activity you want to add the side menu. protected void onCreate(Bundle data) { super.onCreate( data ); setContentView( R.layout.main ); mSlidingMenu = new SimpleSideDrawer( this ); mSlidingMenu.setLeftBehindContentView( R.layout.behind_menu_left ); } The behind_menu.xml is the side menu layout. You can add it by calling setBehindeContentView method. That it you have to do for adding the side menu. If you want to handle the widget on the side menu, you just call findViewById method as usual. #### Need the right-side? mSlidingMenu.setRightBehindContentView( R.layout.behind_menu_right ); ###Step3: Open/Close the side menu You can easy open/close the side menu. mSlidingMenu.toggleDrawer(); Of course, a user can close the side menu by dragging the above view. # More info See my slide share in which I describe the detail of this library. http://www.slideshare.net/adamrocker/simple-side-drawer2 #Directory - SimpleSideDrawer: The library source code - demo: The demo android projects which uses this library - library: .jar file for easy to use - doc: The document of this library #Lisence Copyright 2013, adamrocker ( http://www.adamrocker.com ). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

近期下载者

相关文件


收藏者