How to specify list item count in preview of recyclerview in Android Studio?
Try this (3 number of items)
tools:itemCount="3"
Not the best way to do it but you can limit the layout_height
here so that it only shows enough items that fits within the height/width boundary. So play around with tools:layout_height="150dp"