Android之解决NestedScrollView嵌套RecyclerView部分手机返回到这个页面Recyclerview顶部,而不是页面NestedScrollView顶部
生活随笔
收集整理的這篇文章主要介紹了
Android之解决NestedScrollView嵌套RecyclerView部分手机返回到这个页面Recyclerview顶部,而不是页面NestedScrollView顶部
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1、問題
NestedScrollView嵌套Recyclerview部分手機返回到這個頁面Recyclerview頂部,而不是頁面NestedScrollView頂部
部分布局大致如下
<androidx.core.widget.NestedScrollViewandroid:layout_width="match_parent"android:layout_height="match_parent"android:focusableInTouchMode="true"android:descendantFocusability="blocksDescendants"android:fillViewport="true"app:layout_constraintBottom_toBottomOf="parent"><LinearLayoutandroid:layout_width="match_parent"android:layout_height="match_parent"android:orientation="vertical"><androidx.recyclerview.widget.RecyclerViewandroid:id="@+id/recentGameRv"android:layout_width="match_parent&總結
以上是生活随笔為你收集整理的Android之解决NestedScrollView嵌套RecyclerView部分手机返回到这个页面Recyclerview顶部,而不是页面NestedScrollView顶部的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Android之实现多桌面图标app入口
- 下一篇: Android之实现点击布局缩小然后再放