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.
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
simple-sidedrawer.zip (87个子文件)
simple-side-drawer-master
SimpleSideDrawer
README.txt 325B
.settings
org.eclipse.core.resources.prefs 55B
org.eclipse.jdt.core.prefs 587B
src
com
navdrawer
SimpleSideDrawer.java 19KB
.project 375B
.classpath 415B
.gitignore 5B
library
simple-side-drawer2.jar 11KB
.settings
org.eclipse.core.resources.prefs 55B
org.eclipse.jdt.core.prefs 587B
.project 375B
.classpath 415B
doc
simple_side_drawer2.pdf 1.98MB
simple_side_drawer2.pptx 1.65MB
.gitignore 5B
demo
SimpleSideDrawerExample
bin
classes.dex 410KB
res
crunch
drawable-ldpi
rightbg.9.png 154B
ic_launcher.png 2KB
leftbg.9.png 157B
drawable-hdpi
rightbg.9.png 154B
ic_launcher.png 5KB
leftbg.9.png 157B
ic_action_search.png 409B
drawable-xhdpi
rightbg.9.png 154B
ic_launcher.png 6KB
leftbg.9.png 157B
ic_action_search.png 491B
drawable-mdpi
rightbg.9.png 154B
ic_launcher.png 2KB
leftbg.9.png 157B
ic_action_search.png 311B
SimpleSideDrawerExample.apk 166KB
jarlist.cache 120B
dexedLibs
simple-side-drawer2-fbf3bf6165463dbc91fa85dec2aabf35.jar 6KB
android-support-v4-93b2e9c9317ddcfe68991e93e84285a7.jar 132KB
classes
com
navdrawer
demo
simple
MainActivity.class 2KB
BuildConfig.class 359B
MainActivity$3.class 985B
MainActivity$2.class 1KB
MainActivity$1.class 981B
R$layout.class 527B
R$id.class 509B
R$drawable.class 529B
R$attr.class 361B
R$menu.class 418B
R.class 688B
R$string.class 534B
R$style.class 638B
resources.ap_ 25KB
AndroidManifest.xml 736B
res
drawable-ldpi
rightbg.9.png 1KB
ic_launcher.png 2KB
leftbg.9.png 99B
menu
activity_main.xml 203B
drawable-hdpi
rightbg.9.png 1KB
ic_launcher.png 3KB
leftbg.9.png 99B
ic_action_search.png 3KB
drawable-xhdpi
rightbg.9.png 1KB
ic_launcher.png 4KB
leftbg.9.png 99B
ic_action_search.png 3KB
values
strings.xml 260B
styles.xml 2KB
drawable-mdpi
rightbg.9.png 1KB
ic_launcher.png 2KB
leftbg.9.png 99B
ic_action_search.png 3KB
layout
activity_behind_left_simple.xml 683B
activity_main.xml 1KB
activity_behind_right_simple.xml 685B
proguard-project.txt 781B
ic_launcher-web.png 37KB
assets
gen
com
navdrawer
demo
simple
BuildConfig.java 167B
R.java 2KB
.settings
org.eclipse.core.resources.prefs 55B
org.eclipse.jdt.core.prefs 177B
src
com
navdrawer
demo
simple
MainActivity.java 2KB
.project 826B
.classpath 475B
.gitignore 5B
project.properties 563B
AndroidManifest.xml 736B
libs
android-support-v4.jar 341KB
simple-side-drawer2.jar 11KB
lint.xml 53B
README.md 2KB
共 87 条
- 1
资源评论
ZM_Crazy
- 粉丝: 21
- 资源: 27
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功