android - Make the RecyclerView load more items from database -


i using recyclerview cursors following set up, recyclerview adapter cursorrecyclerviewadapter. items have image , textviews. recyclerview not going have more 5-7 items @ max.

my question is, there way tell recyclerview load more items ones shown in screen? because of imageviews, 2 present on screen , when scrolling others load not smooth should be. there way tell recyclerview load 4 if 2 not showing on screen?

well, basic concept of recyclerview recycles views go out of screen , reuses them (when not visible) show next items in list. minimum number of views loaded memory , views recycled in loop according position.

is there way tell recyclerview load more items ones shown in screen?

if want load more items user can see on screen, think might not possible recyclerview.

workaround : if have small list (as suggest) use listview or gridview can desire.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -