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:

enter image description here

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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Restarting Supervisor and effect on FlaskSocketIO -