0

I need to create a screen which looks similar to Google play store screen, but need to add vertical recyclview also in between (Horizontal + vertical recycleview )

the problem is it causes a great lag when I scroll. the screen hangs for a second and gets resumed when all the view-holders are done creating!

Peter
  • 919
  • 1
  • 11
  • 23

3 Answers3

0
Khemraj Sharma
  • 52,662
  • 21
  • 188
  • 195
0
<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>
DMK
  • 13
  • 5
0

reduce the size or quality of images , i think your images in one of recycler view is too large , that's why recycler view getting lazy.