你好,作者,首先感谢你开发了这个好用的第三方库,我在项目中已经使用了,但是遇到一个问题,请教指教一下,业务上,我使用的是单activity+多Fragment,所以activity上放了一个空的FrameLayout,承载着不同的Fragment,所以我在使用你的库改造后,大致下面这样
<cn.leaqi.drawer.SwipeDrawer
android:layout_width="match_parent"
android:layout_height="match_parent"
app:mainLayout="@+id/mainDrawer"
app:topLayout="@+id/topDrawer">
<FrameLayout
android:id="@+id/topDrawer"
android:layout_width="match_parent"
android:layout_height="match_parent">
</FrameLayout>
<FrameLayout
android:id="@+id/mainDrawer"
android:layout_width="match_parent"
android:layout_height="match_parent">
</FrameLayout>
首先这个top下拉的页面是一个没有滑动的页面,但是id为main,也就是之前我项目里面的空FrameLayout 里面承载的不同Fragment,有的是一个没有滑动的布局,有的是带有上下滑动的RecycleView,还有水平滑动的RecyclerView, 目前我使用你提供的api,可以做到主页没有滑动和水平滑动的 不会和top的Fragment全屏手势下拉冲突,但是带有垂直Recyclerview的fragment加载进去后,它的上下滑动就被top的手势抢占了, 我看有 mainScroll这个api,但是要指定子View的id,但是我的主页加载的Fragment是动态的,没发写死id
所以这种情况 该怎么处理,谢谢~