Use a TabLayout with ViewPager2. Make Epsiodes and Similar titles a seperate child Fragment of MediaFragment. Use a shared ViewModel for MediaFragment ans children.
Use a TabLayout with ViewPager2. Make Epsiodes and Similar titles a seperate child Fragment of MediaFragment. Use a shared ViewModel for MediaFragment ans children.
* https://developer.android.com/topic/libraries/architecture/viewmodel#sharing
* https://stackoverflow.com/questions/59952673/how-to-get-an-instance-of-viewmodel-in-activity-in-2020-21
The media fragment should use a CoordinatorLayout.
* https://android.jlelse.eu/scrolling-behavior-for-appbars-in-android-41aff9c5c468
* https://guides.codepath.com/android/handling-scrolls-with-coordinatorlayout
* https://stackoverflow.com/questions/65034767/dynamic-height-viewpager-with-recyclerview-and-tablayout
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Like netflix, show similar titles in media fragment. The information can be received from AoD, imdb or the to be created Anime Metadata Database.
Use a TabLayout with ViewPager2. Make Epsiodes and Similar titles a seperate child Fragment of MediaFragment. Use a shared ViewModel for MediaFragment ans children.
The media fragment should use a CoordinatorLayout.
https://github.com/android/views-widgets-samples/tree/master/ViewPager2