How can I limit the number of items displayed by the RecyclerView ?
I can limit the amount inserted it if I override getChildCount
, but that causes it to only insert that number and then stop. I want it to keep inserting/scrolling, but only display X number of items.
(Note: The height of each item can differ, so it's important that the limit is based on quantity rather than some hard coded value.)