mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-16 07:10:29 +05:30
119 lines
4.8 KiB
XML
119 lines
4.8 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.PlaylistFragment">
|
|
|
|
<ProgressBar
|
|
android:id="@+id/playlist_progress"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_centerVertical="true"
|
|
android:visibility="gone" />
|
|
|
|
<ScrollView
|
|
android:id="@+id/playlist_scrollview"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<com.google.android.material.imageview.ShapeableImageView
|
|
android:id="@+id/thumbnail"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="20dp"
|
|
android:layout_marginVertical="10dp"
|
|
android:adjustViewBounds="true"
|
|
android:scaleType="fitCenter"
|
|
app:shapeAppearanceOverlay="@style/ShapeAppearance.Material3.Corner.ExtraLarge"
|
|
tools:src="@tools:sample/backgrounds/scenic" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:orientation="horizontal"
|
|
android:paddingHorizontal="15dp">
|
|
|
|
<TextView
|
|
android:id="@+id/playlist_name"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/rounded_ripple"
|
|
android:ellipsize="end"
|
|
android:maxLines="2"
|
|
android:textSize="20sp"
|
|
android:textStyle="bold" />
|
|
|
|
<ImageView
|
|
android:id="@+id/optionsMenu"
|
|
android:layout_width="20dp"
|
|
android:layout_height="20dp"
|
|
android:layout_gravity="center"
|
|
android:layout_marginEnd="10dp"
|
|
android:src="@drawable/ic_three_dots" />
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/playlistInfo"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingHorizontal="15dp"
|
|
android:paddingVertical="8dp"
|
|
android:textStyle="bold" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginVertical="10dp"
|
|
android:orientation="horizontal">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/play_all"
|
|
style="@style/Widget.Material3.Button.OutlinedButton"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="10dp"
|
|
android:layout_weight="1"
|
|
android:text="@string/play_all"
|
|
app:icon="@drawable/ic_playlist" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/bookmark"
|
|
style="@style/Widget.Material3.Button"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="10dp"
|
|
android:layout_weight="1"
|
|
android:text="@string/bookmark"
|
|
app:icon="@drawable/ic_bookmark_outlined" />
|
|
|
|
</LinearLayout>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:descendantFocusability="blocksDescendants">
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/playlist_recView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:clipToPadding="false"
|
|
android:nestedScrollingEnabled="false" />
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|
|
|
|
</RelativeLayout> |