android / views-widgets-samples

Multiple samples showing the best practices in views-widgets on Android.
Apache License 2.0
5.03k stars 3.01k forks source link

How to add more button above recycler view and show all recycler item in a new activity #228

Open Programmingtimes opened 2 years ago

Programmingtimes commented 2 years ago

I try my best to explain my query. I have created a movie streaming app. I have succeeded in adding all data from JSON to android studio using retrofit and I use nested recycler view to show all movie categories under one recycler view. My current output :https://ibb.co/BG6Qgvf My query is, how to add more buttons to the recycler view on the top right of each category image ref: https://i.insider.com/5e58373afee23d3d691b5ce7?width=750&format=jpeg&auto=webp in amazon prime app they used cat name with arrow mark and added on click event . https://ibb.co/WKxBnM7 it will take them to another activity where that activity shows the clicked even category inside recycler view can you tell me how to achieve this. I have tried in StackOverflow unfortunately i did not get answer .

  1. query . I have an idea to add multiple recyclers for example , for action movie one recycler next for kids movie another recycler will it cause performance issue? if there is any other workaround other than this complex one