Recyclerlistview: reverse mode ?

Created on 25 Jan 2018  Â·  6Comments  Â·  Source: Flipkart/recyclerlistview

Is it possible?

please

Most helpful comment

It seems that this hack (flipping items upside down, then flipping the entire list back to normal) makes it so that the layouts of the items in the resulting visible area of the list (the end) is processed last, leaving me with items visually being stacked on top of each other for a few seconds.

Is there any progress on the built-in list reversal? It would be so helpful for interactive lists where time decides the order of items and where items should come up from the bottom, such as in a chat.

All 6 comments

Yes it is. It is actually very easy to do in any list. Use ScaleY: -1 transform on the list post that do the same for all items being rendered. Let me know if this helps.

Assuming this to be resolved. Closing.

It seems that this hack (flipping items upside down, then flipping the entire list back to normal) makes it so that the layouts of the items in the resulting visible area of the list (the end) is processed last, leaving me with items visually being stacked on top of each other for a few seconds.

Is there any progress on the built-in list reversal? It would be so helpful for interactive lists where time decides the order of items and where items should come up from the bottom, such as in a chat.

Furthermore, I guess what is now the last item visually, is actually the first item data-wise, and it causes re-renders as described in the guides for all items _above_ it – which doesn’t really work with a chat-like list where items flow from the bottom and up.

+1

Please support a proper reverse mode. Otherwise this happens:
Screenshot_20200313-032510

Btw, this library is amazing. Smooth scrolling, much much better than FlatList !

Not to mention the extra transforms causing entire list to be re-rendered if a new message is added (since its added at the beginning, not the end)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ErHarinderSingh picture ErHarinderSingh  Â·  6Comments

LukaszK88 picture LukaszK88  Â·  6Comments

H-Shafiei picture H-Shafiei  Â·  8Comments

waheedakhtar694 picture waheedakhtar694  Â·  6Comments

sm2017 picture sm2017  Â·  5Comments