mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-15 23:00:31 +05:30
191 lines
8.2 KiB
XML
191 lines
8.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:context=".ui.fragments.SubscriptionsFragment">
|
|
|
|
<ProgressBar
|
|
android:id="@+id/sub_progress"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_centerVertical="true"
|
|
android:visibility="gone" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/emptyFeed"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
android:orientation="vertical"
|
|
android:visibility="gone">
|
|
|
|
<ImageView
|
|
android:layout_width="100dp"
|
|
android:layout_height="100dp"
|
|
android:layout_gravity="center"
|
|
android:layout_marginBottom="16dp"
|
|
android:src="@drawable/ic_list" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginHorizontal="10dp"
|
|
android:text="@string/emptyList"
|
|
android:textSize="20sp"
|
|
android:textStyle="bold" />
|
|
</LinearLayout>
|
|
|
|
<com.github.libretube.ui.views.CustomSwipeToRefresh
|
|
android:id="@+id/sub_refresh"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<ScrollView
|
|
android:id="@+id/scrollview_sub"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:animateLayoutChanges="true"
|
|
android:orientation="vertical">
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:id="@+id/toggle_subs"
|
|
style="@style/Widget.Material3.CardView.Elevated"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="14dp"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginEnd="14dp"
|
|
android:layout_marginBottom="12dp"
|
|
app:cardCornerRadius="18dp">
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="8dp"
|
|
android:paddingHorizontal="8dp"
|
|
android:text="@string/subscriptions"
|
|
android:textAlignment="viewStart"
|
|
app:drawableEndCompat="@drawable/ic_arrow_up_down" />
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/sub_channels_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:descendantFocusability="blocksDescendants"
|
|
android:visibility="gone">
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/sub_channels"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:nestedScrollingEnabled="false" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/sub_feed_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="5dp">
|
|
|
|
<TextView
|
|
android:id="@+id/filterTV"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="start"
|
|
android:layout_marginStart="5dp"
|
|
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_sort" />
|
|
|
|
</FrameLayout>
|
|
|
|
<HorizontalScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginVertical="3dp"
|
|
android:scrollbars="none">
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:id="@+id/edit_groups"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginStart="12dp"
|
|
android:layout_marginEnd="6dp"
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
android:src="@drawable/ic_edit" />
|
|
|
|
<com.google.android.material.chip.ChipGroup
|
|
android:id="@+id/channel_groups"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="5dp"
|
|
app:checkedChip="@id/chip_all"
|
|
app:selectionRequired="true"
|
|
app:singleLine="true"
|
|
app:singleSelection="true">
|
|
|
|
<com.google.android.material.chip.Chip
|
|
android:id="@+id/chip_all"
|
|
style="@style/ElevatedFilterChip"
|
|
android:text="@string/all" />
|
|
|
|
</com.google.android.material.chip.ChipGroup>
|
|
|
|
</LinearLayout>
|
|
|
|
</HorizontalScrollView>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:descendantFocusability="blocksDescendants">
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/sub_feed"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:nestedScrollingEnabled="false" />
|
|
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</ScrollView>
|
|
</com.github.libretube.ui.views.CustomSwipeToRefresh>
|
|
</RelativeLayout>
|