解决recyclerview 在 scrollview 中不能全部显示,高度不正常的问题

来源:互联网 发布:淘宝日系男装店铺 编辑:程序博客网 时间:2024/06/05 10:19
<RelativeLayout    android:layout_width="match_parent"    android:layout_height="wrap_content"    android:descendantFocusability="blocksDescendants">    <android.support.v7.widget.RecyclerView        android:id="@+id/xRv_test"        android:layout_width="match_parent"        android:layout_height="wrap_content"/>

</RelativeLayout>

xRvTest.setHasFixedSize(true);xRvTest.setNestedScrollingEnabled(false);

阅读全文
0 0