60 lines
2.5 KiB
XML
60 lines
2.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout 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"
|
|
android:background="?attr/colorSurface"
|
|
android:fitsSystemWindows="true">
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:id="@+id/appBarLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:fitsSystemWindows="true"
|
|
app:liftOnScroll="true">
|
|
|
|
<com.google.android.material.appbar.MaterialToolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:layout_collapseMode="pin"
|
|
app:navigationIcon="@drawable/ic_keyboard_backspace_black"
|
|
app:title="@string/queue"
|
|
app:titleTextAppearance="@style/ToolbarTextAppearanceNormal"
|
|
tools:ignore="UnusedAttribute" />
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/recyclerView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:clipToPadding="false"
|
|
android:overScrollMode="never"
|
|
android:paddingBottom="96dp"
|
|
android:scrollbars="none"
|
|
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"
|
|
tools:listitem="@layout/item_queue" />
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@android:id/empty"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:text="@string/empty"
|
|
android:textAppearance="@style/TextViewNormal"
|
|
android:textColor="?colorOnSecondary"
|
|
android:visibility="gone"
|
|
tools:visibility="visible" />
|
|
|
|
<com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
|
|
android:id="@+id/clearQueue"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom|end"
|
|
android:layout_margin="16dp"
|
|
android:text="@string/clear_playing_queue"
|
|
android:textAppearance="@style/TextViewHeadline6"
|
|
app:icon="@drawable/ic_clear_all" />
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout> |