2021-08-28 16:54:12 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2021-08-31 11:26:17 +02:00
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2021-08-28 16:54:12 +02:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
|
|
|
android:id="@+id/appbar"
|
|
|
|
|
android:layout_width="match_parent"
|
2022-01-10 12:45:01 +01:00
|
|
|
android:layout_height="wrap_content">
|
2021-08-28 16:54:12 +02:00
|
|
|
|
2022-01-10 12:45:01 +01:00
|
|
|
<com.google.android.material.appbar.MaterialToolbar
|
2021-08-28 16:54:12 +02:00
|
|
|
android:id="@+id/toolbar"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2022-01-12 10:00:11 +01:00
|
|
|
android:background="?attr/colorSurface"
|
2022-01-10 12:45:01 +01:00
|
|
|
app:layout_scrollFlags="scroll|enterAlways|snap">
|
2021-08-28 16:54:12 +02:00
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="32dp"
|
|
|
|
|
android:layout_height="32dp"
|
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
|
android:background="@drawable/ic_toolbar_motion_on" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
style="@style/ToolbarTextView"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
android:paddingEnd="8dp"
|
2021-09-04 21:31:27 +02:00
|
|
|
android:text="@string/app_name" />
|
|
|
|
|
android:text="@string/app_name" />
|
2021-08-28 16:54:12 +02:00
|
|
|
</LinearLayout>
|
2022-01-10 12:45:01 +01:00
|
|
|
</com.google.android.material.appbar.MaterialToolbar>
|
2021-08-28 16:54:12 +02:00
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
|
|
2021-08-31 11:26:17 +02:00
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/empty_download_layout"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/empty_download_img"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:adjustViewBounds="true"
|
|
|
|
|
android:maxWidth="240dp"
|
|
|
|
|
android:maxHeight="240dp"
|
|
|
|
|
android:scaleType="centerInside"
|
|
|
|
|
android:src="@drawable/ui_empty_list" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/title_download_screen"
|
|
|
|
|
style="@style/ItemTitleTextView"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingTop="12dp"
|
2021-09-04 19:00:41 +02:00
|
|
|
android:text="@string/download_info_empty_title" />
|
2021-08-31 11:26:17 +02:00
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/subtitle_download_screen"
|
|
|
|
|
style="@style/ItemSubtitleTextView"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingStart="56dp"
|
|
|
|
|
android:paddingEnd="56dp"
|
2021-09-04 19:00:41 +02:00
|
|
|
android:text="@string/download_info_empty_subtitle" />
|
2021-08-31 11:26:17 +02:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
2021-08-28 16:54:12 +02:00
|
|
|
<androidx.core.widget.NestedScrollView
|
|
|
|
|
android:id="@+id/fragment_download_nested_scroll_view"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
2021-09-04 21:31:27 +02:00
|
|
|
android:visibility="gone"
|
|
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
2021-08-28 16:54:12 +02:00
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/download_linear_layout_container"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:paddingBottom="@dimen/global_padding_bottom">
|
|
|
|
|
|
|
|
|
|
<!-- Downloaded artist -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/download_downloaded_artist_sector"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:visibility="gone">
|
|
|
|
|
|
|
|
|
|
<!-- Label and button -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
android:paddingEnd="8dp">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/downloaded_artist_text_view_refreshable"
|
|
|
|
|
style="@style/HeadlineTextView"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:paddingStart="8dp"
|
2021-09-04 21:31:27 +02:00
|
|
|
android:paddingTop="8dp"
|
2021-08-28 16:54:12 +02:00
|
|
|
android:paddingEnd="8dp"
|
2021-09-04 19:00:41 +02:00
|
|
|
android:text="@string/download_title_artist_section" />
|
2021-08-28 16:54:12 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/downloaded_artist_text_view_clickable"
|
|
|
|
|
style="@style/SubheadTextView"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingStart="8dp"
|
2021-09-04 21:31:27 +02:00
|
|
|
android:paddingTop="8dp"
|
2021-08-28 16:54:12 +02:00
|
|
|
android:paddingEnd="8dp"
|
2021-09-04 19:00:41 +02:00
|
|
|
android:text="@string/download_title_artist_see_all_button" />
|
2021-08-28 16:54:12 +02:00
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
|
android:id="@+id/downloaded_artist_recycler_view"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
|
android:clipToPadding="false"
|
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
|
android:paddingBottom="8dp" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<include
|
|
|
|
|
android:id="@+id/download_downloaded_artist_placeholder"
|
|
|
|
|
layout="@layout/item_placeholder_album"
|
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
|
|
<!-- Downloaded albums -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/download_downloaded_album_sector"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<!-- Label and button -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
|
android:paddingEnd="8dp">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/downloaded_album_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"
|
2021-09-04 19:00:41 +02:00
|
|
|
android:text="@string/download_title_album_section" />
|
2021-08-28 16:54:12 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/downloaded_album_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"
|
2021-09-04 19:00:41 +02:00
|
|
|
android:text="@string/download_title_album_see_all" />
|
2021-08-28 16:54:12 +02:00
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
|
android:id="@+id/downloaded_album_recycler_view"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
|
android:clipToPadding="false"
|
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
|
android:paddingBottom="8dp" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<include
|
|
|
|
|
android:id="@+id/download_downloaded_album_placeholder"
|
|
|
|
|
layout="@layout/item_placeholder_album"
|
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
|
|
<!-- Downloaded tracks -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/download_downloaded_tracks_sector"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<!-- Label and button -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
|
android:paddingEnd="8dp">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/downloaded_tracks_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"
|
2021-09-04 19:00:41 +02:00
|
|
|
android:text="@string/download_title_tracks_section" />
|
2021-08-28 16:54:12 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/downloaded_tracks_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"
|
2021-09-04 19:00:41 +02:00
|
|
|
android:text="@string/download_title_tracks_see_all_button" />
|
2021-08-28 16:54:12 +02:00
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
|
android:id="@+id/downloaded_tracks_recycler_view"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
|
android:clipToPadding="false"
|
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
|
android:paddingBottom="8dp" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<include
|
|
|
|
|
android:id="@+id/download_downloaded_tracks_placeholder"
|
|
|
|
|
layout="@layout/item_placeholder_horizontal"
|
|
|
|
|
android:visibility="gone" />
|
2021-09-03 17:51:55 +02:00
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/download_downloaded_playlist_sector"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:paddingBottom="8dp">
|
|
|
|
|
|
|
|
|
|
<!-- Label and button -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
|
android:paddingEnd="8dp">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/downloaded_playlist_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"
|
2021-09-04 19:00:41 +02:00
|
|
|
android:text="@string/download_title_playlist_section" />
|
2021-09-03 17:51:55 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/downloaded_playlist_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"
|
2021-09-04 19:00:41 +02:00
|
|
|
android:text="@string/download_title_playlist_see_all_button" />
|
2021-09-03 17:51:55 +02:00
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<!-- slideview -->
|
|
|
|
|
<androidx.viewpager2.widget.ViewPager2
|
|
|
|
|
android:id="@+id/downloaded_playlist_view_pager"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="212dp"
|
|
|
|
|
android:clipToPadding="false"
|
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
|
android:paddingBottom="8dp" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<include
|
|
|
|
|
android:id="@+id/download_downloaded_playlist_placeholder"
|
|
|
|
|
layout="@layout/item_placeholder_album"
|
|
|
|
|
android:visibility="gone" />
|
2021-08-28 16:54:12 +02:00
|
|
|
</LinearLayout>
|
|
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
|
|
|
|