通过查看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;
}
}
ViewPaper和slidingmenu冲突?
时间: 2024-11-09 05:35:29