AndroidUI库 -SlidingMenu
需要用到另外一个库ActionBarSherlock:
可以直接继承SlidingFragmentActivity,或者采用下面的方法来使用:
SlidingMenu slidingmenu = new SlidingMenu(this); slidingmenu.setMode(SlidingMenu.LEFT); slidingmenu.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN); slidingmenu.setShadowWidthRes(R.dimen.shadow_width); slidingmenu.setShadowDrawable(R.drawable.shadow); slidingmenu.setBehindOffsetRes(R.dimen.slidingmenu_offset); slidingmenu.setFadeDegree(0.35f); slidingmenu.attachToActivity(this, SlidingMenu.SLIDING_WINDOW); slidingmenu.setMenu(R.layout.menu_frame);
补充:移动开发 , Android ,