fix some scrolling issues

This commit is contained in:
Bnyro 2022-11-17 19:01:46 +01:00
parent 214aaf6612
commit 576f72bc36
2 changed files with 13 additions and 6 deletions

View File

@ -24,7 +24,7 @@ class HomeModel : ViewModel() {
runOrError(appContext) {
if (trending.value.isNullOrEmpty()) {
trending.postValue(
RetrofitInstance.api.getTrending(trendingRegion).withMaxSize(20)
RetrofitInstance.api.getTrending(trendingRegion).withMaxSize(10)
)
}
}

View File

@ -37,13 +37,20 @@
style="@style/HomeCategoryTitle"
android:text="@string/trending" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/trendingRV"
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="10dp"
android:nestedScrollingEnabled="false"
android:visibility="gone" />
android:descendantFocusability="blocksDescendants">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/trendingRV"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="10dp"
android:nestedScrollingEnabled="false"
android:visibility="gone" />
</RelativeLayout>
<TextView
android:id="@+id/playlistsTV"