I'm having a hard time creating a nested recycler view that will allow the second one to appear depending on the "movie category" selected. This is what's supposed to happen in the app. Every time a user click a category, recyclerview2 should appear on top of it. Has anybody ever done this before? How will I be able to implement it on this app? 2 RECYCLER VIEWS
Asked
Active
Viewed 190 times
0
-
Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Aug 02 '22 at 14:23
-
you are trying to create a horizontal recycler view and on clicking its item it will show a vertical recycler view. Is that it? Please explain your question more clearly. – Arsh Aug 03 '22 at 00:09
-
what I can infer from the photo you provided is that you can create tabs and just create different instances of a single tab fragment for different tabs. – Arsh Aug 03 '22 at 00:13
-
@Arsh yes. basically, the first recyclerview should show the second recyclerview when clicked. It's like a header with a dropdown list. In this case, recyclerviews triggering the appearance of another recyclerview. – pearly Aug 03 '22 at 01:16
-
You just simply need to create a horizontal recycler view and when you click on any item of the view just assign a new list to the recycler view in onItemClick. You need to have a horizontal recycler view at the top and below it a vertical recycler view. Where's the problem? – Arsh Aug 03 '22 at 13:09
-
@Arsh can this be achieved using the method you've shared? [link](https://drive.google.com/file/d/1pCi2yUqfWoQAcds3XQqRUxt1ORSxRIZE/view?usp=sharing) When the movie category is clicked, it needs to show a pop up and a list of movies. – pearly Aug 04 '22 at 07:15
-
so you want to implement this with your tabs at the bottom in an android app? You are showing an image of the desktop view. When you will create a tab in android it won't have this much space that your selected item joins with the list view below it or on top of it because the screen size is small. – Arsh Aug 04 '22 at 12:32
-
_so you want to implement this with your tabs at the bottom in an android app?_ Yes. I'm developing an android TV app, that's why it has this much space. – pearly Aug 05 '22 at 02:56