2023-01-28 22:38:02 +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:id="@+id/library_root"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/empty_list_textview"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_margin="30dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
|
|
android:id="@+id/search_bar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?attr/primaryGrayBackground">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/search_status_bar_padding"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
app:layout_scrollFlags="scroll|enterAlways">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/provider_selector"
|
|
|
|
android:layout_width="25dp"
|
|
|
|
android:layout_height="25dp"
|
|
|
|
android:layout_gravity="end|center_vertical"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
|
|
android:contentDescription="@string/change_providers_img_des"
|
|
|
|
android:src="@drawable/ic_baseline_extension_24"
|
|
|
|
app:tint="?attr/textColor" />
|
|
|
|
|
2023-10-10 15:16:35 +00:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/library_sort"
|
|
|
|
android:layout_width="45dp"
|
|
|
|
android:layout_height="45dp"
|
|
|
|
android:layout_gravity="end|center_vertical"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
|
|
android:contentDescription="@string/change_providers_img_des"
|
|
|
|
android:padding="5dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible"
|
|
|
|
android:src="@drawable/ic_baseline_sort_24"
|
|
|
|
app:tint="?attr/textColor" />
|
|
|
|
|
2023-01-28 22:38:02 +00:00
|
|
|
<FrameLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:layout_margin="10dp"
|
|
|
|
android:background="@drawable/search_background"
|
|
|
|
android:visibility="visible"
|
|
|
|
app:layout_scrollFlags="scroll|enterAlways">
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.SearchView
|
|
|
|
android:id="@+id/main_search"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center_vertical"
|
2023-10-13 22:44:51 +00:00
|
|
|
android:layout_marginEnd="25dp"
|
2023-01-28 22:38:02 +00:00
|
|
|
|
|
|
|
android:iconifiedByDefault="false"
|
|
|
|
android:imeOptions="actionSearch"
|
|
|
|
|
|
|
|
android:inputType="text"
|
|
|
|
android:nextFocusLeft="@id/nav_rail_view"
|
|
|
|
|
|
|
|
android:nextFocusRight="@id/search_filter"
|
|
|
|
android:paddingStart="-10dp"
|
|
|
|
app:iconifiedByDefault="false"
|
|
|
|
app:queryBackground="@color/transparent"
|
|
|
|
app:queryHint="@string/search_hint"
|
|
|
|
app:searchIcon="@drawable/search_icon"
|
2023-10-13 22:44:51 +00:00
|
|
|
app:closeIcon="@drawable/ic_baseline_close_24"
|
2023-01-28 22:38:02 +00:00
|
|
|
tools:ignore="RtlSymmetry">
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.SearchView>
|
|
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/list_selector"
|
|
|
|
android:layout_width="45dp"
|
|
|
|
android:layout_height="45dp"
|
|
|
|
android:layout_gravity="end|center_vertical"
|
|
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
|
|
android:contentDescription="@string/change_providers_img_des"
|
|
|
|
android:nextFocusLeft="@id/main_search"
|
|
|
|
android:nextFocusRight="@id/main_search"
|
|
|
|
android:padding="10dp"
|
|
|
|
android:src="@drawable/ic_baseline_filter_list_24"
|
|
|
|
app:tint="?attr/textColor" />
|
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:animateLayoutChanges="true"
|
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
|
|
|
|
|
<androidx.viewpager2.widget.ViewPager2
|
|
|
|
android:id="@+id/viewpager"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:clipToPadding="false"
|
|
|
|
android:paddingBottom="40dp"
|
|
|
|
tools:listitem="@layout/library_viewpager_page" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/library_loading_overlay"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="?attr/primaryBlackBackground"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
|
|
|
<com.facebook.shimmer.ShimmerFrameLayout
|
|
|
|
android:id="@+id/library_loading_shimmer"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_margin="2dp"
|
|
|
|
app:shimmer_auto_start="true"
|
|
|
|
app:shimmer_base_alpha="0.2"
|
|
|
|
app:shimmer_duration="@integer/loading_time"
|
|
|
|
app:shimmer_highlight_alpha="0.3">
|
|
|
|
|
|
|
|
<GridView
|
|
|
|
android:id="@+id/gridview"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:clipToPadding="false"
|
|
|
|
android:gravity="center"
|
|
|
|
android:horizontalSpacing="10dp"
|
|
|
|
android:numColumns="3"
|
|
|
|
android:paddingBottom="120dp"
|
|
|
|
android:verticalSpacing="10dp"
|
|
|
|
tools:listitem="@layout/loading_poster_dynamic" />
|
|
|
|
</com.facebook.shimmer.ShimmerFrameLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_marginBottom="40dp">
|
2024-01-10 21:28:06 +00:00
|
|
|
<com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
|
|
|
|
android:id="@+id/library_random"
|
|
|
|
style="@style/ExtendedFloatingActionButton"
|
|
|
|
android:layout_gravity="bottom|start"
|
|
|
|
android:text="@string/home_random"
|
|
|
|
android:textColor="?attr/textColor"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:icon="@drawable/ic_baseline_play_arrow_24"
|
|
|
|
tools:ignore="ContentDescription"
|
|
|
|
tools:visibility="visible" />
|
2023-01-28 22:38:02 +00:00
|
|
|
|
|
|
|
<com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
|
|
|
|
android:id="@+id/sort_fab"
|
|
|
|
style="@style/ExtendedFloatingActionButton"
|
|
|
|
android:text="@string/sort"
|
|
|
|
android:textColor="?attr/textColor"
|
|
|
|
app:icon="@drawable/ic_baseline_sort_24"
|
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
<com.google.android.material.tabs.TabLayout
|
|
|
|
android:id="@+id/library_tab_layout"
|
|
|
|
style="@style/Theme.Widget.Tabs"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
android:background="?attr/primaryGrayBackground"
|
2023-10-10 15:16:35 +00:00
|
|
|
android:focusable="true"
|
2023-01-28 22:38:02 +00:00
|
|
|
android:paddingHorizontal="5dp"
|
|
|
|
app:layout_scrollFlags="noScroll"
|
|
|
|
app:tabGravity="center"
|
|
|
|
app:tabIndicator="@drawable/indicator_background"
|
2023-02-02 00:15:24 +00:00
|
|
|
app:tabIndicatorColor="?attr/white"
|
2023-01-28 22:38:02 +00:00
|
|
|
app:tabIndicatorGravity="center"
|
|
|
|
app:tabIndicatorHeight="30dp"
|
|
|
|
app:tabMode="scrollable"
|
2023-02-02 00:15:24 +00:00
|
|
|
app:tabSelectedTextColor="?attr/primaryBlackBackground"
|
2023-01-28 22:38:02 +00:00
|
|
|
app:tabTextAppearance="@style/TabNoCaps"
|
2023-02-02 00:15:24 +00:00
|
|
|
app:tabTextColor="?attr/textColor" />
|
2023-01-28 22:38:02 +00:00
|
|
|
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|