android.support.v4.widget.NestedScrollView嵌套RecyclerView时,会遇到不显示最顶端内容,需要给NestedScrollView的子控件设置属性
android:descendantFocusability="blocksDescendants"
当在Android中使用NestedScrollView包裹RecyclerView时,可能会遇到无法显示最顶端内容的问题。本文介绍了解决方案,即通过设置NestedScrollView的子控件属性android:descendantFocusability为blocksDescendants来确保内容正常显示。
android.support.v4.widget.NestedScrollView嵌套RecyclerView时,会遇到不显示最顶端内容,需要给NestedScrollView的子控件设置属性
android:descendantFocusability="blocksDescendants"

被折叠的 条评论
为什么被折叠?