QQ5.0侧滑效果和微信左右滑动的混合使用
QQ5.0的侧滑效果和微信的页面切换为什么不能同时使用,好像有冲突。问题是出在布局文件吗?还是其他原因?其他代码和老师一样。
其中activity_main.xml如下:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:chenyufeng="http://schemas.android.com/apk/res/com.imooc.baidumap"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<com.imooc.view.SlidingMenu
android:id="@+id/id_menu"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/img_frame_background"
android:scrollbars="none"
chenyufeng:rightPadding="80dp" >
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="horizontal" >
<include layout="@layout/left_menu" />
<include layout="@layout/right_menu" />
</LinearLayout>
</com.imooc.view.SlidingMenu>
</LinearLayout>
right_menu.xml如下:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="@drawable/qq">
<include layout="@layout/top1" />
<include layout="@layout/top2" />
<android.support.v4.view.ViewPager
android:id="@+id/id_viewpager"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
</LinearLayout>