2021-12-09 18:25:32 +05:30
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2022-02-12 20:00:36 +05:30
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2022-07-15 14:06:33 +05:30
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2021-12-09 18:25:32 +05:30
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2022-09-20 23:23:34 +05:30
|
|
|
tools:context=".ui.fragments.SubscriptionsFragment">
|
2022-03-17 22:38:23 +05:30
|
|
|
|
2022-02-12 20:00:36 +05:30
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/sub_progress"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerHorizontal="true"
|
2022-03-17 22:38:23 +05:30
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:visibility="gone" />
|
2021-12-09 18:25:32 +05:30
|
|
|
|
2022-01-28 22:40:32 +05:30
|
|
|
<RelativeLayout
|
2022-08-03 17:11:45 +05:30
|
|
|
android:id="@+id/emptyFeed"
|
2021-12-09 18:25:32 +05:30
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2022-08-03 17:11:45 +05:30
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:visibility="gone">
|
2022-01-28 22:40:32 +05:30
|
|
|
|
|
|
|
<ImageView
|
2022-02-07 22:13:30 +05:30
|
|
|
android:id="@+id/boogh"
|
2022-01-28 22:40:32 +05:30
|
|
|
android:layout_width="100dp"
|
|
|
|
android:layout_height="100dp"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:layout_marginBottom="16dp"
|
2022-08-03 17:11:45 +05:30
|
|
|
android:src="@drawable/ic_list" />
|
2022-02-12 20:00:36 +05:30
|
|
|
|
2022-01-28 22:40:32 +05:30
|
|
|
<TextView
|
2022-02-12 20:00:36 +05:30
|
|
|
android:id="@+id/textLike"
|
2022-01-28 22:40:32 +05:30
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2022-02-07 22:13:30 +05:30
|
|
|
android:layout_below="@id/boogh"
|
2022-01-28 22:40:32 +05:30
|
|
|
android:layout_centerHorizontal="true"
|
2022-07-08 17:49:29 +05:30
|
|
|
android:layout_marginHorizontal="10dp"
|
2022-02-12 20:00:36 +05:30
|
|
|
android:gravity="center"
|
2022-08-03 17:11:45 +05:30
|
|
|
android:text="@string/emptyList"
|
2022-01-28 22:40:32 +05:30
|
|
|
android:textSize="20sp"
|
2022-02-12 20:00:36 +05:30
|
|
|
android:textStyle="bold" />
|
2022-01-28 22:40:32 +05:30
|
|
|
</RelativeLayout>
|
2022-03-17 22:38:23 +05:30
|
|
|
|
2022-09-20 23:23:34 +05:30
|
|
|
<com.github.libretube.ui.views.CustomSwipeToRefresh
|
2022-03-17 22:38:23 +05:30
|
|
|
android:id="@+id/sub_refresh"
|
2022-02-12 20:00:36 +05:30
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
2022-03-17 22:38:23 +05:30
|
|
|
|
|
|
|
<ScrollView
|
|
|
|
android:id="@+id/scrollview_sub"
|
2022-02-12 20:00:36 +05:30
|
|
|
android:layout_width="match_parent"
|
2022-03-17 22:38:23 +05:30
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<LinearLayout
|
2022-02-12 20:00:36 +05:30
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2022-07-15 14:06:33 +05:30
|
|
|
android:animateLayoutChanges="true"
|
2022-03-17 22:38:23 +05:30
|
|
|
android:orientation="vertical">
|
2022-02-12 20:00:36 +05:30
|
|
|
|
2022-07-15 14:06:33 +05:30
|
|
|
<com.google.android.material.card.MaterialCardView
|
2022-05-14 21:44:53 +05:30
|
|
|
android:id="@+id/toggle_subs"
|
2022-07-15 14:06:33 +05:30
|
|
|
style="@style/Widget.Material3.CardView.Elevated"
|
2022-05-14 21:44:53 +05:30
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2022-10-02 17:56:15 +05:30
|
|
|
android:layout_marginStart="14dp"
|
2022-07-20 17:19:56 +05:30
|
|
|
android:layout_marginTop="5dp"
|
2022-10-02 17:56:15 +05:30
|
|
|
android:layout_marginEnd="14dp"
|
2022-07-20 17:19:56 +05:30
|
|
|
android:layout_marginBottom="12dp"
|
2022-10-02 16:38:18 +05:30
|
|
|
app:cardCornerRadius="18dp">
|
2022-05-14 21:44:53 +05:30
|
|
|
|
2022-07-15 14:06:33 +05:30
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2022-05-14 21:44:53 +05:30
|
|
|
android:layout_height="wrap_content"
|
2022-07-15 14:06:33 +05:30
|
|
|
android:layout_margin="8dp">
|
2022-05-14 21:44:53 +05:30
|
|
|
|
2022-07-15 14:06:33 +05:30
|
|
|
<TextView
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:text="@string/subscriptions"
|
|
|
|
android:textSize="17sp" />
|
2022-05-14 21:44:53 +05:30
|
|
|
|
2022-07-15 14:06:33 +05:30
|
|
|
<ImageView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginEnd="3dp"
|
|
|
|
android:src="@drawable/ic_arrow_up_down" />
|
2022-05-14 21:44:53 +05:30
|
|
|
|
2022-07-15 14:06:33 +05:30
|
|
|
</LinearLayout>
|
2021-12-09 18:25:32 +05:30
|
|
|
|
2022-07-15 14:06:33 +05:30
|
|
|
</com.google.android.material.card.MaterialCardView>
|
2022-03-17 22:38:23 +05:30
|
|
|
|
2022-07-21 20:41:17 +05:30
|
|
|
<RelativeLayout
|
2022-07-21 21:36:09 +05:30
|
|
|
android:id="@+id/sub_channels_container"
|
2022-02-12 20:00:36 +05:30
|
|
|
android:layout_width="match_parent"
|
2022-03-17 22:38:23 +05:30
|
|
|
android:layout_height="wrap_content"
|
2022-07-27 15:27:04 +05:30
|
|
|
android:descendantFocusability="blocksDescendants"
|
|
|
|
android:visibility="gone">
|
|
|
|
|
2022-07-21 20:41:17 +05:30
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/sub_channels"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:nestedScrollingEnabled="false" />
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
2022-07-29 16:09:03 +05:30
|
|
|
<LinearLayout
|
2022-07-21 21:36:09 +05:30
|
|
|
android:id="@+id/sub_feed_container"
|
2022-07-15 14:06:33 +05:30
|
|
|
android:layout_width="match_parent"
|
2022-07-29 16:09:03 +05:30
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical">
|
2022-07-21 20:41:17 +05:30
|
|
|
|
2022-12-28 21:16:57 +05:30
|
|
|
<FrameLayout
|
|
|
|
android:layout_width="match_parent"
|
2022-07-29 16:09:03 +05:30
|
|
|
android:layout_height="wrap_content"
|
2022-12-28 21:16:57 +05:30
|
|
|
android:layout_marginBottom="5dp">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/filterTV"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="start"
|
2022-12-28 21:19:24 +05:30
|
|
|
android:layout_marginStart="5dp"
|
2022-12-28 21:16:57 +05:30
|
|
|
android:drawablePadding="5dp"
|
|
|
|
android:paddingHorizontal="10dp"
|
|
|
|
android:text="@string/all"
|
|
|
|
android:textSize="16sp"
|
|
|
|
app:drawableEndCompat="@drawable/ic_filter" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/sortTV"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
android:drawablePadding="5dp"
|
|
|
|
android:paddingHorizontal="10dp"
|
|
|
|
android:text="@string/most_recent"
|
|
|
|
android:textSize="16sp"
|
|
|
|
app:drawableEndCompat="@drawable/ic_arrow_downward" />
|
|
|
|
|
|
|
|
</FrameLayout>
|
2022-07-29 16:09:03 +05:30
|
|
|
|
|
|
|
<RelativeLayout
|
2022-07-21 20:41:17 +05:30
|
|
|
android:layout_width="match_parent"
|
2022-07-29 16:09:03 +05:30
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:descendantFocusability="blocksDescendants">
|
2022-07-21 20:41:17 +05:30
|
|
|
|
2022-07-29 16:09:03 +05:30
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/sub_feed"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:nestedScrollingEnabled="false" />
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
2022-03-17 22:38:23 +05:30
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|
2022-09-20 23:23:34 +05:30
|
|
|
</com.github.libretube.ui.views.CustomSwipeToRefresh>
|
2022-03-17 22:38:23 +05:30
|
|
|
</RelativeLayout>
|