The recyclerview layout is defined as
<android.support.v7.widget.RecyclerView android:layout_marginTop="15dp" android:id="@+id/call_detail_list" android:scrollbars="vertical" android:layout_width="match_parent" android:layout_height="wrap_content" tools:listitem="@layout/call_item" />
In the preview, I can see the list items from the specified layout, but the number of item is 10. Is there any way that can be changed?
Simple answer: You should use RecyclerView in a situation where you want to show a lot of items, and the number of them is dynamic. ListView should only be used when the number of items is always the same and is limited to the screen size.
episodeList. size() it's your total item in recyclerview.
By default it have 5. you can increase as per your need. Save this answer.
Try this (3 number of items)
tools:itemCount="3"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With