Recyclerview in app

Hello i need a help…My app has a recyclerview and a BUY button…My scenario is whenever i click on the BUY button, an item must be added to the recycler view…Its like a shopping cart or basket which we see in online shopping apps…How can i do this…Thanks in advance

@Vishnu i believe you can just click on buy button and scroll down till the end of recycler view and then you can get the visible child elements.

Once you get them into a list just verify that the last item is the one that you added

Assuming that the latest item added into cart appears towards the end of recycler view

1 Like