Android之SwipeRefreshLayout嵌套RecyclerView遇到的坑
生活随笔
收集整理的這篇文章主要介紹了
Android之SwipeRefreshLayout嵌套RecyclerView遇到的坑
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1 、需求
RecyclerView多布局里面加入SwipeRefreshLayout實現下拉刷新
2、關鍵代碼
<androidx.swiperefreshlayout.widget.SwipeRefreshLayoutandroid:id="@+id/mainRefresh"android:layout_width="match_parent"android:layout_height="0dp"app:layout_constraintBottom_toBottomOf="parent"app:layout_constraintTop_toBottomOf="@+id/llRemind"app:layout_constraintVertical_bias="0.0"tools:layout_editor_absoluteX="0dp" ><androidx.recyclerview.widget.RecyclerViewandroid:id="@+id/list"android:layout_width="match_parent"android:layout_height="0dp"app:layout_constraintBottom_toBottomOf="parent"app:總結
以上是生活随笔為你收集整理的Android之SwipeRefreshLayout嵌套RecyclerView遇到的坑的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: C语言试题八十二之输入小写字母,把小写字
- 下一篇: C语言试题八十三之输出左下三角形九九乘法