LibreTube/app/src/main/res/layout/fragment_home.xml

116 lines
4.3 KiB
XML
Raw Normal View History

2021-12-09 18:25:32 +05:30
<?xml version="1.0" encoding="utf-8"?>
2022-11-17 23:28:53 +05:30
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
2021-12-09 18:25:32 +05:30
android:layout_width="match_parent"
2022-11-17 23:28:53 +05:30
android:layout_height="match_parent">
2022-06-06 19:36:53 +05:30
2022-11-17 23:28:53 +05:30
<ProgressBar
android:id="@+id/progress"
2022-11-17 22:46:12 +05:30
android:layout_width="wrap_content"
2022-11-17 23:28:53 +05:30
android:layout_height="match_parent"
android:layout_gravity="center" />
2022-11-17 22:46:12 +05:30
2022-11-18 20:53:45 +05:30
<com.github.libretube.ui.views.CustomSwipeToRefresh
android:id="@+id/refresh"
2022-11-17 22:46:12 +05:30
android:layout_width="match_parent"
2022-11-17 23:28:53 +05:30
android:layout_height="wrap_content">
2022-11-17 22:46:12 +05:30
2022-11-18 20:53:45 +05:30
<ScrollView
android:id="@+id/scroll"
2022-11-17 23:28:53 +05:30
android:layout_width="match_parent"
2022-12-23 19:27:10 +05:30
android:layout_height="wrap_content"
android:visibility="gone">
2022-11-17 23:28:53 +05:30
2022-11-18 20:53:45 +05:30
<LinearLayout
2022-11-17 23:28:53 +05:30
android:layout_width="match_parent"
android:layout_height="wrap_content"
2022-11-18 20:53:45 +05:30
android:orientation="vertical"
android:paddingBottom="10dp">
<TextView
android:id="@+id/featuredTV"
style="@style/HomeCategoryTitle"
android:text="@string/featured" />
2022-11-17 23:31:46 +05:30
<androidx.recyclerview.widget.RecyclerView
2022-11-18 20:53:45 +05:30
android:id="@+id/featuredRV"
android:layout_width="wrap_content"
2022-11-17 23:31:46 +05:30
android:layout_height="wrap_content"
android:layout_marginHorizontal="10dp"
android:nestedScrollingEnabled="false"
android:visibility="gone" />
2022-11-18 20:53:45 +05:30
<TextView
android:id="@+id/trendingTV"
style="@style/HomeCategoryTitle"
android:text="@string/trending" />
2022-11-17 23:28:53 +05:30
2022-11-18 20:53:45 +05:30
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:descendantFocusability="blocksDescendants">
2022-11-17 23:28:53 +05:30
2022-11-18 20:53:45 +05:30
<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>
2022-11-18 22:31:11 +05:30
<TextView
android:id="@+id/bookmarksTV"
style="@style/HomeCategoryTitle"
2022-11-18 22:58:41 +05:30
android:text="@string/bookmarks" />
2022-11-18 22:31:11 +05:30
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/bookmarksRV"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:nestedScrollingEnabled="false"
android:visibility="gone" />
2022-11-18 20:53:45 +05:30
<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>
2022-11-17 23:28:53 +05:30
2022-11-18 20:53:45 +05:30
</ScrollView>
2022-11-17 23:28:53 +05:30
2022-11-18 20:53:45 +05:30
</com.github.libretube.ui.views.CustomSwipeToRefresh>
2022-11-17 22:46:12 +05:30
<LinearLayout
android:id="@+id/nothing_here"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:orientation="vertical"
android:visibility="gone">
<ImageView
android:id="@+id/listIV"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_gravity="center"
android:src="@drawable/ic_list" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="@string/emptyList"
android:textSize="20sp"
android:textStyle="bold" />
</LinearLayout>
2022-11-17 23:28:53 +05:30
</FrameLayout>