아주 간편하고 좋다 페이스북과 같이 Left 와 Right 메뉴를 지원한다.
https://github.com/jfeinstein10/SlidingMenu
사용법
Simple Example
public class SlidingExample extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setTitle(R.string.attach);
// set the content view
setContentView(R.layout.content);
// configure the SlidingMenu
SlidingMenu menu = new SlidingMenu(this);
menu.setMode(SlidingMenu.LEFT);
menu.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN);
menu.setShadowWidthRes(R.dimen.shadow_width);
menu.setShadowDrawable(R.drawable.shadow);
menu.setBehindOffsetRes(R.dimen.slidingmenu_offset);
menu.setFadeDegree(0.35f);
menu.attachToActivity(this, SlidingMenu.SLIDING_CONTENT);
menu.setMenu(R.layout.menu);
}
}
'Development > Android' 카테고리의 다른 글
[Android] Google Map View V2 (0) | 2013.12.18 |
---|---|
[Android Library] PullToRefresh (0) | 2013.12.17 |
[Android] Found 2 versions of ~~~~.jar in the dependency list, 오류 발생시~! (0) | 2013.12.17 |
[Android] dimen 다양한 type 정의~! (0) | 2013.12.17 |
[Android] GCM구현하기~! (2) | 2013.12.16 |