alibaba / vlayout

Project vlayout is a powerfull LayoutManager extension for RecyclerView, it provides a group of layouts for RecyclerView. Make it able to handle a complicate situation when grid, list and other layouts in the same recyclerview.
http://tangram.pingguohe.net/
MIT License
10.8k stars 1.79k forks source link

为什么以下xml中RecyclerView使用VirtualLayoutManager显示不出item,使用LinearLayoutManager可以? #506

Open panzhiccp1 opened 4 years ago

panzhiccp1 commented 4 years ago

<androidx.coordinatorlayout.widget.CoordinatorLayout android:id="@+id/main_coordinator_layout" android:layout_width="match_parent" android:layout_height="match_parent"> <com.google.android.material.appbar.AppBarLayout android:id="@+id/main_appbar_layout" android:layout_width="match_paRerent" android:layout_height="wrap_content" android:orientation="vertical"> <androidx.recyclerview.widget.RecyclerView android:id="@+id/recycler_view" android:layout_width="match_parent" android:layout_height="wrap_content" app:layout_scrollFlags="scroll" tools:ignore="MissingConstraints" /> </com.google.android.material.appbar.AppBarLayout>

</androidx.coordinatorlayout.widget.CoordinatorLayout>
chaopengTan commented 4 years ago

我也遇到了这个问题,请问你解决了吗