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 -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -