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) { runOrError(appContext) {
if (trending.value.isNullOrEmpty()) { if (trending.value.isNullOrEmpty()) {
trending.postValue( trending.postValue(
RetrofitInstance.api.getTrending(trendingRegion).withMaxSize(20) RetrofitInstance.api.getTrending(trendingRegion).withMaxSize(10)
) )
} }
} }

View File

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