msahakyan / nested-recycler-view

Shows how to create android vertical recyclerView with nested horizontal linear recycler view
191 stars 57 forks source link

nested-recycler-view

Implemented a vertical recylcer view with nested horizontal recycler view.
User can scroll vertically and horizontally through the grid of views.

Application description

Simple application which shows movies list on recyclerView (parent recycler) and related movies inside another nested recyclerView (child recycler).

When user clicks on movie item it loads the details page for that movie and simultaneously tries to load related movie list (for the same genre(s), on which a click happen). After that if user clicks back button and related movies for that movie were loaded successfully a new horizontal recyclerView will be created for related items and dynamically will be added to parent recyclerView below the item on which click event happened.

If user clicks on some other movie item the detail view for that movie will be loaded and simultaneously (in background) previously created child recyclerView (if there was one) will be removed and new child recyclerView will be created (which contains related movies to the newly clicked movie item) on the new position.

Screenshots from movies app

movie list page
main feed page

similar movies page
main feed page with loaded similar movies

movie detail page
detail page view

search results view
main feed page with active search view

integrated youtube player
integrated youtube player

Used Libraries