我需要创建一个类似于Google Play商店屏幕的屏幕,但还需要在其间添加垂直Recyclerview(Horizontal + vertical recyclerview)
问题是当我滚动时会导致很大的延迟。屏幕挂起一秒钟,并在所有观看者完成创建后恢复!
<HorizontalScrollView
android:id="@+id/hsv"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:fillViewport="true"
android:measureAllChildren="false"
android:scrollbars="none" >
<-- you child view xml code and set recyclerview scroll vertical-->
<HorizontalScrollView>
减少图像的大小或质量,我认为您在回收者视图中的图像太大,这就是回收者视图变得懒惰的原因。