首页 > 代码库 > ViewPaper和slidingmenu冲突?

ViewPaper和slidingmenu冲突?


ViewPaper和slidingmenu冲突?

通过查看slidingmenu的viewpage例子,发现如下代码,添加进去后调试正常.

@Override
    public void onPageSelected(int position) {
        switch (position) {
            case 0:
                context.getSlidingMenu().setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN);
                break;
            default:
                context.getSlidingMenu().setTouchModeAbove(SlidingMenu.TOUCHMODE_MARGIN);
                break;
        }
    }