android - Add a "page break indicator" to an endless RecyclerView -
i have endless recyclerview loads new data when user scrolls bottom. adds null object end of list (to represents progressbar) , deletes object when execution complete. want inflate view indicate "page break" after loading new batch of data. looks this:
however, position of objects in list messed if add null object represent view break. there way achieve without touching list?
have @ recyclerview.itemdecoration
. can use add visual cues above/below view
objects being shown recyclerview
. note gets called each view
object, you'll have determine objects page break before (or after) them , draw objects.
Comments
Post a Comment