1

我正在尝试在我的 Android 应用程序中添加滑动窗口功能,
任何人都可以帮助我实现这一点。
提前致谢。

4

2 回答 2

0

try:

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.setSecondaryMenu(R.layout.slide_view);

Whole tutorial you can find here: http://bladesofandroid.blogspot.com/2013/06/hi-guys-in-this-post-i-will-be-showing.html

于 2013-08-12T09:13:41.503 回答
0

I think what you mean is the NavigationDrawer http://developer.android.com/design/patterns/navigation-drawer.html

于 2013-08-12T09:14:09.043 回答