2020-11-20 15:38:08 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2021-08-27 16:09:56 +02:00
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2020-11-20 15:38:08 +01:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
android:layout_width="match_parent"
|
2021-08-27 16:09:56 +02:00
|
|
|
android:layout_height="match_parent">
|
2020-11-20 15:38:08 +01:00
|
|
|
|
2021-08-27 16:09:56 +02:00
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
|
|
|
android:id="@+id/appbar"
|
2020-11-20 15:38:08 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2021-08-27 16:23:19 +02:00
|
|
|
android:theme="@style/ThemeOverlay.MaterialComponents.Dark.ActionBar"
|
|
|
|
|
app:elevation="0dp">
|
2020-11-20 15:38:08 +01:00
|
|
|
|
2021-08-27 16:09:56 +02:00
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
|
|
|
android:id="@+id/toolbar"
|
2020-11-20 15:38:08 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2021-08-27 16:09:56 +02:00
|
|
|
android:background="@color/colorPrimary"
|
|
|
|
|
app:layout_scrollFlags="scroll|enterAlways|snap"
|
|
|
|
|
app:popupTheme="@style/ThemeOverlay.MaterialComponents.Light">
|
2020-11-20 15:38:08 +01:00
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2021-08-27 16:09:56 +02:00
|
|
|
android:orientation="horizontal">
|
2021-04-27 11:47:23 +02:00
|
|
|
|
2021-08-27 16:09:56 +02:00
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="32dp"
|
|
|
|
|
android:layout_height="32dp"
|
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
|
android:layout_marginEnd="8dp"
|
2021-08-27 16:54:36 +02:00
|
|
|
android:background="@drawable/ic_toolbar_motion_on" />
|
2020-11-20 15:38:08 +01:00
|
|
|
|
2021-04-27 11:47:23 +02:00
|
|
|
<TextView
|
2021-08-27 16:54:36 +02:00
|
|
|
style="@style/ToolbarTextView"
|
2021-08-27 16:09:56 +02:00
|
|
|
android:layout_width="match_parent"
|
2020-11-20 15:38:08 +01:00
|
|
|
android:layout_height="wrap_content"
|
2021-08-27 16:54:36 +02:00
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
android:paddingEnd="8dp"
|
2021-08-27 16:09:56 +02:00
|
|
|
android:text="Play" />
|
2020-11-20 15:38:08 +01:00
|
|
|
</LinearLayout>
|
2021-08-27 16:09:56 +02:00
|
|
|
</androidx.appcompat.widget.Toolbar>
|
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
2021-04-27 11:47:23 +02:00
|
|
|
|
2021-08-27 16:09:56 +02:00
|
|
|
<androidx.core.widget.NestedScrollView
|
|
|
|
|
android:id="@+id/fragment_library_nested_scroll_view"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
2021-08-17 14:46:10 +02:00
|
|
|
|
2020-11-20 15:38:08 +01:00
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
2021-08-27 16:09:56 +02:00
|
|
|
android:paddingBottom="@dimen/global_padding_bottom">
|
2020-11-20 15:38:08 +01:00
|
|
|
|
|
|
|
|
<LinearLayout
|
2021-08-27 16:09:56 +02:00
|
|
|
android:id="@+id/library_album_sector"
|
2020-11-20 15:38:08 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2021-08-27 16:09:56 +02:00
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:paddingBottom="8dp">
|
2021-04-27 11:47:23 +02:00
|
|
|
|
2021-08-27 16:09:56 +02:00
|
|
|
<!-- Album -->
|
|
|
|
|
<!-- Label and button -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
2021-04-27 11:47:23 +02:00
|
|
|
android:layout_height="wrap_content"
|
2021-08-27 16:09:56 +02:00
|
|
|
android:orientation="horizontal"
|
2021-04-27 11:47:23 +02:00
|
|
|
android:paddingStart="8dp"
|
2021-08-27 16:09:56 +02:00
|
|
|
android:paddingEnd="8dp">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/album_catalogue_sample_text_view_refreshable"
|
|
|
|
|
style="@style/HeadlineTextView"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
|
android:text="Albums" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/album_catalogue_text_view_clickable"
|
|
|
|
|
style="@style/SubheadTextView"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
|
android:text="See all" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
|
android:id="@+id/album_recycler_view"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
|
android:clipToPadding="false"
|
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
|
android:paddingTop="8dp"
|
2021-04-27 11:47:23 +02:00
|
|
|
android:paddingEnd="8dp"
|
2021-08-27 16:09:56 +02:00
|
|
|
android:paddingBottom="8dp" />
|
2020-11-20 15:38:08 +01:00
|
|
|
</LinearLayout>
|
2021-04-27 11:47:23 +02:00
|
|
|
|
2021-08-27 16:09:56 +02:00
|
|
|
<include
|
|
|
|
|
android:id="@+id/library_album_placeholder"
|
|
|
|
|
layout="@layout/item_placeholder_album"
|
|
|
|
|
android:visibility="gone" />
|
2020-11-20 15:38:08 +01:00
|
|
|
|
|
|
|
|
<LinearLayout
|
2021-08-27 16:09:56 +02:00
|
|
|
android:id="@+id/library_artist_sector"
|
2020-11-20 15:38:08 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2021-08-27 16:09:56 +02:00
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:paddingBottom="8dp">
|
2020-11-25 08:21:30 +01:00
|
|
|
|
2021-08-27 16:09:56 +02:00
|
|
|
<!-- Artist -->
|
|
|
|
|
<!-- Label and button -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
2021-04-27 11:47:23 +02:00
|
|
|
android:layout_height="wrap_content"
|
2021-08-27 16:09:56 +02:00
|
|
|
android:orientation="horizontal"
|
2021-04-27 11:47:23 +02:00
|
|
|
android:paddingStart="8dp"
|
2021-08-27 16:09:56 +02:00
|
|
|
android:paddingTop="8dp"
|
|
|
|
|
android:paddingEnd="8dp">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/artist_catalogue_sample_text_view_refreshable"
|
|
|
|
|
style="@style/HeadlineTextView"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
android:paddingTop="12dp"
|
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
|
android:text="Artists" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/artist_catalogue_text_view_clickable"
|
|
|
|
|
style="@style/SubheadTextView"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
android:paddingTop="12dp"
|
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
|
android:text="See all" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
|
android:id="@+id/artist_recycler_view"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
|
android:clipToPadding="false"
|
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
|
android:paddingTop="8dp"
|
2021-04-27 11:47:23 +02:00
|
|
|
android:paddingEnd="8dp"
|
2021-08-27 16:09:56 +02:00
|
|
|
android:paddingBottom="8dp" />
|
2020-11-20 15:38:08 +01:00
|
|
|
</LinearLayout>
|
2021-04-27 11:47:23 +02:00
|
|
|
|
2021-08-27 16:09:56 +02:00
|
|
|
<include
|
|
|
|
|
android:id="@+id/library_artist_placeholder"
|
|
|
|
|
layout="@layout/item_placeholder_album"
|
|
|
|
|
android:visibility="gone" />
|
2020-11-20 15:38:08 +01:00
|
|
|
|
|
|
|
|
<LinearLayout
|
2021-08-27 16:09:56 +02:00
|
|
|
android:id="@+id/library_genres_sector"
|
2020-11-20 15:38:08 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2021-08-27 16:09:56 +02:00
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:paddingBottom="8dp">
|
2021-04-27 11:47:23 +02:00
|
|
|
|
2021-08-27 16:09:56 +02:00
|
|
|
<!-- Genre -->
|
|
|
|
|
<!-- Label and button -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
2021-04-27 11:47:23 +02:00
|
|
|
android:layout_height="wrap_content"
|
2021-08-27 16:09:56 +02:00
|
|
|
android:orientation="horizontal"
|
2021-04-27 11:47:23 +02:00
|
|
|
android:paddingStart="8dp"
|
2021-08-27 16:09:56 +02:00
|
|
|
android:paddingTop="8dp"
|
|
|
|
|
android:paddingEnd="8dp">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/genre_catalogue_sample_text_view_refreshable"
|
|
|
|
|
style="@style/HeadlineTextView"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
android:paddingTop="12dp"
|
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
|
android:text="Genres" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/genre_catalogue_text_view_clickable"
|
|
|
|
|
style="@style/SubheadTextView"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
android:paddingTop="12dp"
|
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
|
android:text="See all" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
|
android:id="@+id/genre_recycler_view"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
|
android:clipToPadding="false"
|
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
|
android:paddingEnd="8dp" />
|
|
|
|
|
</LinearLayout>
|
2020-11-20 15:38:08 +01:00
|
|
|
|
2021-08-27 16:09:56 +02:00
|
|
|
<include
|
|
|
|
|
android:id="@+id/library_genre_placeholder"
|
|
|
|
|
layout="@layout/item_placeholder_genre"
|
|
|
|
|
android:visibility="gone" />
|
2021-04-27 11:47:23 +02:00
|
|
|
|
2021-08-27 16:09:56 +02:00
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/library_playlist_sector"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:paddingBottom="8dp">
|
|
|
|
|
|
|
|
|
|
<!-- Playlist -->
|
|
|
|
|
<!-- Label and button -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
2020-11-20 15:38:08 +01:00
|
|
|
android:layout_height="wrap_content"
|
2021-08-27 16:09:56 +02:00
|
|
|
android:orientation="horizontal"
|
2020-11-20 15:38:08 +01:00
|
|
|
android:paddingStart="8dp"
|
2021-08-27 16:09:56 +02:00
|
|
|
android:paddingTop="8dp"
|
|
|
|
|
android:paddingEnd="8dp">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/playlist_catalogue_sample_text_view_refreshable"
|
|
|
|
|
style="@style/HeadlineTextView"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
android:paddingTop="12dp"
|
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
|
android:text="Playlists" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/playlist_catalogue_text_view_clickable"
|
|
|
|
|
style="@style/SubheadTextView"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
android:paddingTop="12dp"
|
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
|
android:text="See all" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<!-- slideview -->
|
|
|
|
|
<androidx.viewpager2.widget.ViewPager2
|
|
|
|
|
android:id="@+id/playlist_view_pager"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="212dp"
|
|
|
|
|
android:clipToPadding="false"
|
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
|
android:paddingBottom="8dp" />
|
2020-11-20 15:38:08 +01:00
|
|
|
</LinearLayout>
|
2021-04-27 11:47:23 +02:00
|
|
|
|
2021-08-27 16:09:56 +02:00
|
|
|
<include
|
|
|
|
|
android:id="@+id/library_playlist_placeholder"
|
|
|
|
|
layout="@layout/item_placeholder_album"
|
|
|
|
|
android:visibility="gone" />
|
2020-11-20 15:38:08 +01:00
|
|
|
</LinearLayout>
|
2021-08-27 16:09:56 +02:00
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|