<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <ProgressBar
        android:id="@+id/progress"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:layout_gravity="center" />

    <com.github.libretube.ui.views.CustomSwipeToRefresh
        android:id="@+id/refresh"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <ScrollView
            android:id="@+id/scroll"
            android:visibility="gone"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                android:paddingBottom="10dp">

                <TextView
                    android:id="@+id/featuredTV"
                    style="@style/HomeCategoryTitle"
                    android:text="@string/featured" />

                <androidx.recyclerview.widget.RecyclerView
                    android:id="@+id/featuredRV"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginHorizontal="10dp"
                    android:nestedScrollingEnabled="false"
                    android:visibility="gone" />

                <TextView
                    android:id="@+id/trendingTV"
                    style="@style/HomeCategoryTitle"
                    android:text="@string/trending" />

                <RelativeLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    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/bookmarksTV"
                    style="@style/HomeCategoryTitle"
                    android:text="@string/bookmarks" />

                <androidx.recyclerview.widget.RecyclerView
                    android:id="@+id/bookmarksRV"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:nestedScrollingEnabled="false"
                    android:visibility="gone" />

                <TextView
                    android:id="@+id/playlistsTV"
                    style="@style/HomeCategoryTitle"
                    android:text="@string/playlists" />

                <androidx.recyclerview.widget.RecyclerView
                    android:id="@+id/playlistsRV"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:nestedScrollingEnabled="false"
                    android:visibility="gone" />

            </LinearLayout>

        </ScrollView>

    </com.github.libretube.ui.views.CustomSwipeToRefresh>

</FrameLayout>