RecyclerView TwinklingRefreshLayout CoordinatorLayout三个嵌套出现点小问题,recyclerview下拉的时候还没拉到头就会触发CoordinatorLayout。我想等recy拉到头在触发
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#EFEEEE">
<androidx.coordinatorlayout.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#EFEEEE">
<com.stx.xhb.xbanner.XBanner
android:layout_gravity="center_horizontal"
app:layout_scrollFlags="scroll|enterAlwaysCollapsed"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/xbanner"
android:layout_width="match_parent"
android:layout_height="200dp"
app:AutoPlayTime="3000"
app:pointsPosition="CENTER"
app:tipTextSize="18dp"
app:isShowNumberIndicator="false"
app:isShowIndicatorOnlyOne="true"
app:pageChangeDuration="800"
app:isShowTips="true"
android:scaleType="centerCrop"/>
<LinearLayout
android:background="#EFEEEE"
app:layout_scrollFlags="scroll|enterAlwaysCollapsed"
android:layout_marginTop="14dp"
android:layout_marginBottom="11dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center">
<ImageView
android:layout_width="10dp"
android:layout_height="4dp"
android:background="@drawable/shape_item"/>
<TextView
android:layout_marginLeft="4dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="推荐"
android:textColor="#F5A623"
android:textSize="19dp"/>
<ImageView
android:layout_marginLeft="4dp"
android:layout_width="10dp"
android:layout_height="4dp"
android:background="@drawable/shape_item"/>
</LinearLayout>
</com.google.android.material.appbar.AppBarLayout>
<com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout
android:id="@+id/recommend_twink"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<androidx.recyclerview.widget.RecyclerView
android:background="#ffffff"
android:id="@+id/Home_recommed_list"
android:layout_width="match_parent"
android:overScrollMode="never"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"/>
</com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
</LinearLayout>
您的每一个用心回答,都会让这个世界变得更美好一些!