vlayout
vlayout copied to clipboard
外层加scrollview 数据不显示
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/activity_main" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.sandu.layout.MainActivity">
<android.support.v7.widget.RecyclerView
android:id="@+id/recycler"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
你需要嵌套滚动还是一次性展开嵌套到scrollview,如果是后者,调用一下public void setNoScrolling(boolean noScrolling)
方法
VirtualLayoutManager layoutManager = new VirtualLayoutManager(this); layoutManager.setNoScrolling(true); 没用
我也试了,确实没用
那需要debug一下,demo里测试了是可以,不过在有背景存在的情况下还有其他bug。
这问题有解决方式了吗。
这问题有解决方式了吗。
同样的问题,把VirtualLayoutManager替换成LinearLayoutManager 就是正常的。 对比了下代码,是在 ExposeLinearLayoutManagerEx.fill 函数里面少了layoutState.mInfinite 的判断
碰到相同问题,使用这个库后,recyclerview外面嵌套Scrollview会导致recyclerview之后的layout显示不出来
也碰到了同样的问题,有解决方案了吗
也碰到了同样的问题,有解决方案了吗
持续关注,一样的问题