AndroidUI库 -SlidingMenu

AndroidUI库 -SlidingMenuAndroidUI库 -SlidingMenu

    SlidingMenu的github主页:https://github.com/jfeinstein10/SlidingMenu

    需要用到另外一个库ActionBarSherlock:http://actionbarsherlock.com/

    可以直接继承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,库)