PlayerAndroid/app/src/main/res/layout/fragment_main_recycler.xml

90 lines
3.8 KiB
XML
Raw Normal View History

2020-09-25 17:38:59 +00:00
<?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"
2021-09-20 11:38:48 +00:00
android:fitsSystemWindows="true"
android:transitionGroup="true">
2020-09-25 17:38:59 +00:00
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/appBarLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fitsSystemWindows="true">
2020-09-25 17:38:59 +00:00
<FrameLayout
android:id="@+id/toolbar_container"
2020-09-25 17:38:59 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_scrollFlags="scroll|enterAlways">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:navigationIcon="@drawable/ic_search"
app:popupTheme="?attr/toolbarPopupTheme"
app:title="@null"
tools:ignore="UnusedAttribute">
<com.google.android.material.textview.MaterialTextView
android:id="@+id/appNameText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:textAppearance="@style/TextViewHeadline6"
android:textStyle="bold" />
</androidx.appcompat.widget.Toolbar>
</FrameLayout>
</com.google.android.material.appbar.AppBarLayout>
2020-10-17 12:15:52 +00:00
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView"
2020-09-25 17:38:59 +00:00
android:layout_width="match_parent"
2020-10-02 18:05:09 +00:00
android:layout_height="match_parent"
2020-10-17 12:15:52 +00:00
android:clipToPadding="false"
android:overScrollMode="never"
android:scrollbars="none"
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"
tools:listitem="@layout/item_list" />
2020-09-25 17:38:59 +00:00
2020-10-17 12:15:52 +00:00
<LinearLayout
android:id="@android:id/empty"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:orientation="vertical"
android:visibility="gone"
tools:visibility="visible">
<com.google.android.material.textview.MaterialTextView
android:id="@+id/emptyEmoji"
android:layout_width="wrap_content"
2020-09-25 17:38:59 +00:00
android:layout_height="wrap_content"
2020-10-17 12:15:52 +00:00
android:layout_marginBottom="16dp"
android:text="@string/empty_text_emoji"
android:textAppearance="@style/TextViewHeadline3" />
2020-09-25 17:38:59 +00:00
2020-10-17 12:15:52 +00:00
<com.google.android.material.textview.MaterialTextView
android:id="@+id/emptyText"
2020-09-25 17:38:59 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
2020-10-17 12:15:52 +00:00
android:text="@string/empty"
android:textAppearance="@style/TextViewHeadline5"
android:textColor="?android:attr/textColorSecondary"
tools:visibility="visible" />
</LinearLayout>
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/shuffle_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-10-22 14:53:23 +00:00
android:layout_gravity="bottom|end"
app:srcCompat="@drawable/ic_shuffle"
2021-10-22 14:53:23 +00:00
android:contentDescription="@string/shuffle"
2021-10-22 04:46:06 +00:00
style="@style/Widget.Material3.FloatingActionButton.Primary"
android:layout_marginHorizontal="16dp"/>
2020-09-25 17:38:59 +00:00
</androidx.coordinatorlayout.widget.CoordinatorLayout>