Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

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

Open
panzhiccp1 opened this issue Jun 30, 2020 · 1 comment

Comments

@panzhiccp1
Copy link

<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
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants