2020-11-22 19:11:38 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2021-04-24 11:45:53 +02:00
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2020-11-22 19:11:38 +01:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2021-04-29 15:08:19 +02:00
|
|
|
android:id="@+id/layout"
|
2020-11-22 19:11:38 +01:00
|
|
|
android:layout_width="match_parent"
|
2021-04-29 15:08:19 +02:00
|
|
|
android:layout_height="match_parent">
|
2020-11-22 19:11:38 +01:00
|
|
|
|
2020-12-05 21:31:12 +01:00
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
|
|
|
android:id="@+id/appbar"
|
2020-11-22 19:11:38 +01:00
|
|
|
android:layout_width="match_parent"
|
2022-01-10 12:46:01 +01:00
|
|
|
android:layout_height="@dimen/appbar_header_height">
|
2020-11-22 19:11:38 +01:00
|
|
|
|
2020-12-05 21:31:12 +01:00
|
|
|
<com.google.android.material.appbar.CollapsingToolbarLayout
|
|
|
|
|
android:id="@+id/collapsing_toolbar"
|
2020-11-22 19:11:38 +01:00
|
|
|
android:layout_width="match_parent"
|
2020-12-05 21:31:12 +01:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
app:expandedTitleMarginStart="@dimen/activity_margin_content"
|
2022-08-27 16:51:10 +02:00
|
|
|
app:contentScrim="?attr/colorSurface"
|
2020-12-05 21:31:12 +01:00
|
|
|
app:layout_scrollFlags="scroll|exitUntilCollapsed|snap">
|
2020-11-22 19:11:38 +01:00
|
|
|
|
2020-12-05 21:31:12 +01:00
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/artist_backdrop_image_view"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
2022-01-10 12:46:01 +01:00
|
|
|
android:fitsSystemWindows="true"
|
2020-12-05 21:31:12 +01:00
|
|
|
android:scaleType="centerCrop"
|
2022-01-10 12:46:01 +01:00
|
|
|
app:layout_collapseMode="parallax" />
|
2020-11-22 19:11:38 +01:00
|
|
|
|
2021-04-24 11:45:53 +02:00
|
|
|
<View
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="@dimen/appbar_header_height"
|
|
|
|
|
android:layout_gravity="top"
|
2022-01-10 12:46:01 +01:00
|
|
|
android:background="@drawable/gradient_backdrop_background_image" />
|
2021-04-24 11:45:53 +02:00
|
|
|
|
2022-01-10 12:46:01 +01:00
|
|
|
<com.google.android.material.appbar.MaterialToolbar
|
2020-12-05 21:31:12 +01:00
|
|
|
android:id="@+id/anim_toolbar"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="?attr/actionBarSize"
|
2022-01-10 12:46:01 +01:00
|
|
|
app:layout_collapseMode="pin" />
|
2020-11-26 16:05:58 +01:00
|
|
|
|
2020-12-05 21:31:12 +01:00
|
|
|
</com.google.android.material.appbar.CollapsingToolbarLayout>
|
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
2020-11-27 09:06:50 +01:00
|
|
|
|
2020-12-05 21:31:12 +01:00
|
|
|
<androidx.core.widget.NestedScrollView
|
2021-08-23 22:29:47 +02:00
|
|
|
android:id="@+id/fragment_artist_page_nested_scroll_view"
|
2020-12-05 21:31:12 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
2020-11-22 19:11:38 +01:00
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2020-12-05 21:31:12 +01:00
|
|
|
android:clipToPadding="false"
|
2021-04-15 16:43:38 +02:00
|
|
|
android:orientation="vertical"
|
2021-04-24 11:45:53 +02:00
|
|
|
android:paddingTop="18dp"
|
2021-04-15 16:43:38 +02:00
|
|
|
android:paddingBottom="@dimen/global_padding_bottom">
|
2020-12-05 21:31:12 +01:00
|
|
|
|
2021-04-30 08:36:19 +02:00
|
|
|
<View
|
|
|
|
|
android:id="@+id/upper_button_divider"
|
|
|
|
|
style="@style/Divider"
|
|
|
|
|
android:layout_marginStart="18dp"
|
2022-01-10 12:46:01 +01:00
|
|
|
android:layout_marginEnd="18dp" />
|
2021-04-30 08:36:19 +02:00
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/album_page_button_layout"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:paddingTop="4dp"
|
|
|
|
|
android:paddingBottom="4dp">
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/artist_page_shuffle_button"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
|
android:layout_marginEnd="4dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:padding="10dp"
|
2021-09-04 19:00:41 +02:00
|
|
|
android:text="@string/artist_page_shuffle_button"
|
2021-04-30 08:36:19 +02:00
|
|
|
android:textAllCaps="false"
|
|
|
|
|
app:icon="@drawable/ic_shuffle"
|
|
|
|
|
app:iconGravity="textStart"
|
2022-01-10 12:46:01 +01:00
|
|
|
app:iconPadding="18dp" />
|
2021-04-30 08:36:19 +02:00
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/artist_page_radio_button"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:padding="10dp"
|
2021-09-04 19:00:41 +02:00
|
|
|
android:text="@string/artist_page_radio_button"
|
2021-04-30 08:36:19 +02:00
|
|
|
android:textAllCaps="false"
|
|
|
|
|
app:icon="@drawable/ic_feed"
|
|
|
|
|
app:iconGravity="textStart"
|
2022-01-10 12:46:01 +01:00
|
|
|
app:iconPadding="18dp" />
|
2021-04-30 08:36:19 +02:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:id="@+id/bottom_button_divider"
|
|
|
|
|
style="@style/Divider"
|
|
|
|
|
android:layout_marginStart="18dp"
|
|
|
|
|
android:layout_marginEnd="18dp"
|
2022-01-10 12:46:01 +01:00
|
|
|
android:layout_marginBottom="12dp" />
|
2021-04-30 08:36:19 +02:00
|
|
|
|
2021-08-11 13:05:28 +02:00
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/artist_page_bio_sector"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:paddingBottom="22dp">
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
<TextView
|
2022-01-13 10:38:46 +01:00
|
|
|
style="@style/TitleLarge"
|
2021-08-11 13:05:28 +02:00
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
|
android:paddingEnd="8dp"
|
2021-09-04 19:00:41 +02:00
|
|
|
android:text="@string/artist_page_title_biography_section" />
|
2021-08-11 13:05:28 +02:00
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/bio_more_text_view_clickable"
|
2022-01-13 10:38:46 +01:00
|
|
|
style="@style/TitleMedium"
|
2021-08-11 13:05:28 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingEnd="16dp"
|
2021-09-04 19:00:41 +02:00
|
|
|
android:text="@string/artist_page_title_biography_more_button" />
|
2021-08-11 13:05:28 +02:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/bio_text_view"
|
2022-01-13 10:38:46 +01:00
|
|
|
style="@style/TitleMedium"
|
2021-08-11 13:05:28 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:paddingStart="16dp"
|
2021-08-11 16:08:53 +02:00
|
|
|
android:paddingTop="8dp"
|
2022-01-10 12:46:01 +01:00
|
|
|
android:paddingEnd="16dp"
|
|
|
|
|
android:paddingBottom="8dp" />
|
2021-08-11 13:05:28 +02:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
2023-03-14 11:09:09 +01:00
|
|
|
<include
|
|
|
|
|
android:id="@+id/artist_page_bio_placeholder"
|
|
|
|
|
layout="@layout/item_placehoder_biography"
|
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
2020-12-05 21:31:12 +01:00
|
|
|
<!-- Label and button -->
|
|
|
|
|
<LinearLayout
|
2021-08-02 09:41:53 +02:00
|
|
|
android:id="@+id/artist_page_top_songs_sector"
|
2020-12-05 21:31:12 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2021-08-05 10:06:36 +02:00
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:paddingBottom="22dp">
|
2020-12-05 21:31:12 +01:00
|
|
|
|
2021-08-05 10:06:36 +02:00
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
2020-12-05 21:31:12 +01:00
|
|
|
android:layout_height="wrap_content"
|
2021-08-05 10:06:36 +02:00
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
<TextView
|
2022-01-13 10:38:46 +01:00
|
|
|
style="@style/TitleLarge"
|
2021-08-05 10:06:36 +02:00
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
|
android:paddingEnd="8dp"
|
2021-09-04 19:00:41 +02:00
|
|
|
android:text="@string/artist_page_title_most_streamed_song_section" />
|
2021-08-05 10:06:36 +02:00
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/most_streamed_song_text_view_clickable"
|
2022-01-13 10:38:46 +01:00
|
|
|
style="@style/TitleMedium"
|
2021-08-05 10:06:36 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingEnd="16dp"
|
2021-09-04 19:00:41 +02:00
|
|
|
android:text="@string/artist_page_title_most_streamed_song_see_all_button" />
|
2021-08-05 10:06:36 +02:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
|
android:id="@+id/most_streamed_song_recycler_view"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:layout_marginBottom="8dp"
|
2023-07-02 19:55:05 +02:00
|
|
|
android:nestedScrollingEnabled="false"
|
2021-08-05 10:06:36 +02:00
|
|
|
android:clipToPadding="false"
|
|
|
|
|
android:paddingTop="8dp" />
|
2020-12-05 21:31:12 +01:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
2023-03-14 11:09:09 +01:00
|
|
|
<include
|
|
|
|
|
android:id="@+id/artist_page_top_tracks_placeholder"
|
|
|
|
|
layout="@layout/item_placeholder_horizontal"
|
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
2021-08-05 10:06:36 +02:00
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/artist_page_albums_sector"
|
2020-12-05 21:31:12 +01:00
|
|
|
android:layout_width="match_parent"
|
2020-11-22 19:11:38 +01:00
|
|
|
android:layout_height="wrap_content"
|
2021-08-05 10:06:36 +02:00
|
|
|
android:orientation="vertical">
|
2020-11-22 19:11:38 +01:00
|
|
|
|
2021-08-05 10:06:36 +02:00
|
|
|
<TextView
|
2022-01-13 10:38:46 +01:00
|
|
|
style="@style/TitleLarge"
|
2021-08-05 10:06:36 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
|
android:paddingEnd="20dp"
|
2021-09-04 19:00:41 +02:00
|
|
|
android:text="@string/artist_page_title_album_section" />
|
2021-08-05 10:06:36 +02:00
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
|
android:id="@+id/albums_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"
|
|
|
|
|
android:paddingBottom="8dp" />
|
|
|
|
|
</LinearLayout>
|
2021-05-01 18:52:26 +02:00
|
|
|
|
2023-03-14 11:09:09 +01:00
|
|
|
<include
|
|
|
|
|
android:id="@+id/artist_page_album_placeholder"
|
|
|
|
|
layout="@layout/item_placeholder_album"
|
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
2021-05-01 18:52:26 +02:00
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/similar_artist_sector"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<TextView
|
2022-01-13 10:38:46 +01:00
|
|
|
style="@style/TitleLarge"
|
2021-05-01 18:52:26 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
|
android:paddingEnd="20dp"
|
2021-09-04 19:00:41 +02:00
|
|
|
android:text="@string/artist_page_title_album_more_like_this_button" />
|
2021-05-01 18:52:26 +02:00
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
|
android:id="@+id/similar_artists_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"
|
|
|
|
|
android:paddingBottom="8dp" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
2023-03-14 11:09:09 +01:00
|
|
|
|
|
|
|
|
<include
|
|
|
|
|
android:id="@+id/artist_page_similar_artist_placeholder"
|
|
|
|
|
layout="@layout/item_placeholder_album"
|
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
2020-11-22 19:11:38 +01:00
|
|
|
</LinearLayout>
|
2020-12-05 21:31:12 +01:00
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|