-Removed ScrollView. RecyclerView itself handles scrolling, nesting it inside a ScrollView is possibly leading to conflicting scrolling behavior effecting performance(i.e stuttering when scrolling at bottom and updating list with new data items).
-Used AppBarLayout and CollapsingToolbarLayout as containers for content(image etc) above list of video items. Together with CoordinatorLayout, these components streamline scrolling behavior and UI interactions with each other and RecyclerView.
Implemented listeners to provide distinction between scrolling upward and swiping to refresh layout. When a user scrolls up, the refresh layout is only triggered once they are at the top of the scroll.
-Removed ScrollView. RecyclerView itself handles scrolling, nesting it inside a ScrollView is possibly leading to conflicting scrolling behavior effecting performance(i.e stuttering when scrolling at bottom and updating list with new data items).
-Used AppBarLayout and CollapsingToolbarLayout as containers for content(banner etc) above list of videos items. Together with CoordinatorLayout, these components streamline scrolling behavior and UI interactions with each other and RecyclerView.
* Added necessary translations
* Added support for redirecting directly to IntentSettings
* Create HomeViewModel
* Used HomeViewModel
* Update app/src/main/java/com/github/libretube/ui/fragments/HomeFragment.kt
Co-authored-by: Bnyro <82752168+Bnyro@users.noreply.github.com>
* Update app/src/main/java/com/github/libretube/ui/fragments/HomeFragment.kt
Co-authored-by: Bnyro <82752168+Bnyro@users.noreply.github.com>
* Update app/src/main/java/com/github/libretube/ui/fragments/HomeFragment.kt
Co-authored-by: Bnyro <82752168+Bnyro@users.noreply.github.com>
* Swap elvis operator for if statement for improved readability.
* Move runSafely to separate file
* Change when statement by if statement
Co-authored-by: Bnyro <82752168+Bnyro@users.noreply.github.com>
* Format if statement
* * Remove LiveData properties;
* Change buttons style for consistency;
* Move updateIfChanged to a separate file;
---------
Co-authored-by: Bnyro <82752168+Bnyro@users.noreply.github.com>