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

109 lines
4.6 KiB
XML
Raw Normal View History

2022-10-29 01:38:50 +05:30
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<FrameLayout
android:id="@+id/standard_bottom_sheet"
style="@style/Widget.Material3.BottomSheet"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="20dp"
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<!-- Drag handle for accessibility -->
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
android:id="@+id/drag_handle"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/options_recycler"
android:layout_width="match_parent"
2022-10-29 01:48:18 +05:30
android:layout_height="0dp"
android:layout_weight="1" />
2022-10-29 01:38:50 +05:30
<LinearLayout
android:id="@+id/bottom_controls"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2022-10-29 02:34:44 +05:30
android:layout_margin="5dp"
2022-10-29 01:38:50 +05:30
android:background="@drawable/rounded_ripple"
android:padding="10dp">
<ImageView
android:id="@+id/repeat"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginHorizontal="5dp"
android:background="?attr/selectableItemBackgroundBorderless"
android:padding="5dp"
android:src="@drawable/ic_repeat" />
2022-10-29 01:38:50 +05:30
<ImageView
android:id="@+id/shuffle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2022-11-17 20:55:34 +05:30
android:layout_marginHorizontal="5dp"
2022-10-29 01:38:50 +05:30
android:background="?attr/selectableItemBackgroundBorderless"
2022-10-29 02:34:44 +05:30
android:padding="5dp"
2022-10-29 01:38:50 +05:30
android:src="@drawable/ic_shuffle" />
2022-11-17 20:55:34 +05:30
<ImageView
android:id="@+id/reverse"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginHorizontal="5dp"
android:background="?attr/selectableItemBackgroundBorderless"
android:padding="5dp"
android:src="@drawable/ic_reverse" />
<ImageView
android:id="@+id/add_to_playlist"
2022-11-17 20:55:34 +05:30
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginHorizontal="5dp"
android:background="?attr/selectableItemBackgroundBorderless"
android:padding="5dp"
android:src="@drawable/ic_playlist_add" />
2022-11-17 20:55:34 +05:30
2022-10-29 01:38:50 +05:30
<ImageView
android:id="@+id/sort"
2022-10-29 01:38:50 +05:30
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2022-11-17 20:55:34 +05:30
android:layout_marginHorizontal="5dp"
2022-10-29 01:38:50 +05:30
android:background="?attr/selectableItemBackgroundBorderless"
2022-10-29 02:34:44 +05:30
android:padding="5dp"
android:src="@drawable/ic_sort" />
2022-10-29 01:38:50 +05:30
<ImageView
android:id="@+id/clear_queue"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginHorizontal="5dp"
android:background="?attr/selectableItemBackgroundBorderless"
android:padding="5dp"
android:src="@drawable/ic_close" />
<ImageView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginHorizontal="10dp"
android:paddingVertical="5dp"
android:layout_weight="1"
android:src="@drawable/ic_arrow_down" />
2022-10-29 01:38:50 +05:30
</LinearLayout>
</LinearLayout>
</FrameLayout>
</androidx.constraintlayout.widget.ConstraintLayout>