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
Post a Comment