我已经测试过,当RecyclerView为wrap_content
或match_parent
时,recycler将不会使用,并且RecyclerView将加载所有数据。
发布于 2017-08-16 17:20:53
当您试图在父布局中滚动另一个视图时,应该使用NestedScrollView
而不是ScrollView
。
它与ScrollView非常相似,也是v4支持库的一部分:https://developer.android.com/reference/android/support/v4/widget/NestedScrollView.html
发布于 2017-08-16 17:22:15
使用setListViewHeightBasedOnChildren(Listview listview)
方法在ScrollView
中设置ListView
的高度:它将使您的ListView
与父对象的高度相匹配。
https://stackoverflow.com/questions/45709452
复制相似问题