2020-11-20 15:38:08 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2021-04-24 11:45:53 +02:00
|
|
|
<androidx.core.widget.NestedScrollView 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-04-14 14:55:28 +02:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
app:layout_behavior="@string/hide_bottom_view_on_scroll_behavior">
|
2020-11-20 15:38:08 +01:00
|
|
|
|
2021-04-14 14:55:28 +02:00
|
|
|
<LinearLayout
|
2021-04-19 17:38:34 +02:00
|
|
|
android:id="@+id/home_linear_layout_container"
|
2020-11-20 15:38:08 +01:00
|
|
|
android:layout_width="match_parent"
|
2021-04-14 14:55:28 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:paddingBottom="@dimen/global_padding_bottom">
|
2020-11-20 15:38:08 +01:00
|
|
|
|
2021-04-14 14:55:28 +02:00
|
|
|
<!-- Discover music -->
|
2020-11-20 15:38:08 +01:00
|
|
|
<LinearLayout
|
2021-04-19 17:38:34 +02:00
|
|
|
android:id="@+id/home_discover_sector"
|
2020-11-20 15:38:08 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2021-04-14 14:55:28 +02:00
|
|
|
android:orientation="vertical">
|
2020-11-20 15:38:08 +01:00
|
|
|
|
2021-04-29 11:03:43 +02:00
|
|
|
<!-- Label and button -->
|
|
|
|
|
<LinearLayout
|
2021-04-14 14:55:28 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2021-04-29 11:03:43 +02:00
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
|
android:paddingEnd="8dp">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
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="Music discovery" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/home_settings_image_view"
|
|
|
|
|
android:layout_width="22dp"
|
|
|
|
|
android:layout_height="22dp"
|
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
|
android:background="@drawable/ic_settings"
|
|
|
|
|
android:backgroundTint="@color/bottomNavIconColor"
|
|
|
|
|
android:foreground="?android:attr/selectableItemBackgroundBorderless" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
2021-04-14 14:55:28 +02:00
|
|
|
|
|
|
|
|
<!-- slideview -->
|
|
|
|
|
<androidx.viewpager2.widget.ViewPager2
|
|
|
|
|
android:id="@+id/discover_song_view_pager"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="212dp"
|
|
|
|
|
android:clipToPadding="false"
|
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
|
android:paddingBottom="8dp" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
2021-04-19 17:38:34 +02:00
|
|
|
<!-- Most played tracks -->
|
2021-04-14 14:55:28 +02:00
|
|
|
<LinearLayout
|
2021-04-19 17:38:34 +02:00
|
|
|
android:id="@+id/home_most_played_tracks_sector"
|
2021-04-14 14:55:28 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<!-- Label and button -->
|
2020-11-20 15:38:08 +01:00
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2021-04-14 14:55:28 +02:00
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
|
android:paddingEnd="8dp">
|
2020-11-20 15:38:08 +01:00
|
|
|
|
|
|
|
|
<TextView
|
2021-04-24 11:45:53 +02:00
|
|
|
style="@style/HeadlineTextView"
|
2021-04-14 14:55:28 +02:00
|
|
|
android:layout_width="0dp"
|
2020-11-20 15:38:08 +01:00
|
|
|
android:layout_height="wrap_content"
|
2021-04-14 14:55:28 +02:00
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
android:paddingTop="12dp"
|
|
|
|
|
android:paddingEnd="8dp"
|
2021-04-24 11:45:53 +02:00
|
|
|
android:text="Most played" />
|
2020-11-20 15:38:08 +01:00
|
|
|
|
|
|
|
|
|
2021-04-14 14:55:28 +02:00
|
|
|
<TextView
|
2021-04-19 17:38:34 +02:00
|
|
|
android:id="@+id/most_played_tracks_text_view_clickable"
|
2021-04-24 11:45:53 +02:00
|
|
|
style="@style/SubheadTextView"
|
2021-04-14 14:55:28 +02:00
|
|
|
android:layout_width="wrap_content"
|
2020-11-20 15:38:08 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingStart="8dp"
|
2021-04-14 14:55:28 +02:00
|
|
|
android:paddingTop="12dp"
|
2020-11-30 20:54:05 +01:00
|
|
|
android:paddingEnd="8dp"
|
2021-04-24 11:45:53 +02:00
|
|
|
android:text="See all" />
|
2021-04-14 14:55:28 +02:00
|
|
|
|
2020-11-30 20:54:05 +01:00
|
|
|
</LinearLayout>
|
2020-11-20 15:38:08 +01:00
|
|
|
|
2021-04-14 14:55:28 +02:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
2021-04-19 17:38:34 +02:00
|
|
|
android:id="@+id/most_played_tracks_recycler_view"
|
2021-04-14 14:55:28 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
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-04-19 17:38:34 +02:00
|
|
|
<!-- Recently played tracks -->
|
2021-04-14 14:55:28 +02:00
|
|
|
<LinearLayout
|
2021-04-19 17:38:34 +02:00
|
|
|
android:id="@+id/home_recently_played_tracks_sector"
|
2021-04-14 14:55:28 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<!-- Label and button -->
|
2020-11-20 15:38:08 +01:00
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2021-04-14 14:55:28 +02:00
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
|
android:paddingEnd="8dp">
|
2020-11-20 15:38:08 +01:00
|
|
|
|
|
|
|
|
<TextView
|
2021-04-24 11:45:53 +02:00
|
|
|
style="@style/HeadlineTextView"
|
2021-04-14 14:55:28 +02:00
|
|
|
android:layout_width="0dp"
|
2020-11-20 15:38:08 +01:00
|
|
|
android:layout_height="wrap_content"
|
2021-04-14 14:55:28 +02:00
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
android:paddingTop="12dp"
|
|
|
|
|
android:paddingEnd="8dp"
|
2021-04-24 11:45:53 +02:00
|
|
|
android:text="Last played" />
|
2020-11-20 15:38:08 +01:00
|
|
|
|
2021-04-14 14:55:28 +02:00
|
|
|
|
|
|
|
|
<TextView
|
2021-04-19 17:38:34 +02:00
|
|
|
android:id="@+id/recently_played_tracks_text_view_clickable"
|
2021-04-24 11:45:53 +02:00
|
|
|
style="@style/SubheadTextView"
|
2021-04-14 14:55:28 +02:00
|
|
|
android:layout_width="wrap_content"
|
2020-11-20 15:38:08 +01:00
|
|
|
android:layout_height="wrap_content"
|
2021-04-14 14:55:28 +02:00
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
android:paddingTop="12dp"
|
2020-11-20 15:38:08 +01:00
|
|
|
android:paddingEnd="8dp"
|
2021-04-24 11:45:53 +02:00
|
|
|
android:text="See all" />
|
2021-04-14 14:55:28 +02:00
|
|
|
|
2020-11-20 15:38:08 +01:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
2021-04-14 14:55:28 +02:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
2021-04-19 17:38:34 +02:00
|
|
|
android:id="@+id/recently_played_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:paddingStart="16dp"
|
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
|
android:paddingBottom="8dp" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<!-- Fashback -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/home_flashback_sector"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<!-- Label and button -->
|
|
|
|
|
<TextView
|
2021-04-24 11:45:53 +02:00
|
|
|
style="@style/HeadlineTextView"
|
2021-04-19 17:38:34 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
|
android:paddingTop="20dp"
|
|
|
|
|
android:paddingEnd="16dp"
|
2021-04-24 11:45:53 +02:00
|
|
|
android:text="Flashback" />
|
2021-04-19 17:38:34 +02:00
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
|
android:id="@+id/years_recycler_view"
|
2020-11-20 15:38:08 +01:00
|
|
|
android:layout_width="match_parent"
|
2020-11-21 18:41:35 +01:00
|
|
|
android:layout_height="wrap_content"
|
2021-04-14 14:55:28 +02:00
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
|
android:clipToPadding="false"
|
2021-04-19 17:38:34 +02:00
|
|
|
android:paddingStart="16dp"
|
2021-04-14 14:55:28 +02:00
|
|
|
android:paddingTop="8dp"
|
2021-04-19 17:38:34 +02:00
|
|
|
android:paddingEnd="8dp"
|
2021-04-14 14:55:28 +02:00
|
|
|
android:paddingBottom="8dp" />
|
|
|
|
|
</LinearLayout>
|
2020-11-20 15:38:08 +01:00
|
|
|
|
2021-04-19 17:38:34 +02:00
|
|
|
<!-- Favorites -->
|
2021-04-14 14:55:28 +02:00
|
|
|
<LinearLayout
|
2021-04-19 17:38:34 +02:00
|
|
|
android:id="@+id/home_favorite_tracks_sector"
|
2021-04-14 14:55:28 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical">
|
2020-11-30 20:54:05 +01:00
|
|
|
|
2021-04-14 14:55:28 +02:00
|
|
|
<!-- Label and button -->
|
2020-11-20 15:38:08 +01:00
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2021-04-14 14:55:28 +02:00
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
|
android:paddingEnd="8dp">
|
2020-11-20 15:38:08 +01:00
|
|
|
|
2021-04-14 14:55:28 +02:00
|
|
|
<TextView
|
2021-04-24 11:45:53 +02:00
|
|
|
style="@style/HeadlineTextView"
|
2021-04-14 14:55:28 +02:00
|
|
|
android:layout_width="0dp"
|
2020-11-20 15:38:08 +01:00
|
|
|
android:layout_height="wrap_content"
|
2021-04-14 14:55:28 +02:00
|
|
|
android:layout_weight="1"
|
2020-11-20 15:38:08 +01:00
|
|
|
android:paddingStart="8dp"
|
2021-04-14 14:55:28 +02:00
|
|
|
android:paddingTop="12dp"
|
|
|
|
|
android:paddingEnd="8dp"
|
2021-04-24 11:45:53 +02:00
|
|
|
android:text="Favorites" />
|
2021-04-14 14:55:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
2021-04-19 17:38:34 +02:00
|
|
|
android:id="@+id/favorites_tracks_text_view_clickable"
|
2021-04-24 11:45:53 +02:00
|
|
|
style="@style/SubheadTextView"
|
2021-04-14 14:55:28 +02:00
|
|
|
android:layout_width="wrap_content"
|
2020-11-20 15:38:08 +01:00
|
|
|
android:layout_height="wrap_content"
|
2021-04-14 14:55:28 +02:00
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
android:paddingTop="12dp"
|
2020-11-20 15:38:08 +01:00
|
|
|
android:paddingEnd="8dp"
|
2021-04-24 11:45:53 +02:00
|
|
|
android:text="See all" />
|
2021-04-14 14:55:28 +02:00
|
|
|
|
2020-11-20 15:38:08 +01:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
2021-04-14 14:55:28 +02:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
2021-04-19 17:38:34 +02:00
|
|
|
android:id="@+id/favorites_tracks_recycler_view"
|
2021-04-14 14:55:28 +02:00
|
|
|
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>
|
|
|
|
|
|
2021-04-26 19:37:05 +02:00
|
|
|
<!-- Downloaded tracks -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/home_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
|
|
|
|
|
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="Downloaded" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<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"
|
|
|
|
|
android:text="See all" />
|
|
|
|
|
|
|
|
|
|
</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:paddingStart="16dp"
|
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
|
android:paddingBottom="8dp" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
2021-04-19 17:38:34 +02:00
|
|
|
<!-- Recently added tracks -->
|
2021-04-14 14:55:28 +02:00
|
|
|
<LinearLayout
|
2021-04-19 17:38:34 +02:00
|
|
|
android:id="@+id/home_recently_added_tracks_sector"
|
2021-04-14 14:55:28 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<!-- Label and button -->
|
2020-11-30 20:54:05 +01:00
|
|
|
<LinearLayout
|
2020-11-20 15:38:08 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2021-04-14 14:55:28 +02:00
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
|
android:paddingEnd="8dp">
|
2020-11-30 20:54:05 +01:00
|
|
|
|
2021-04-14 14:55:28 +02:00
|
|
|
<TextView
|
2021-04-24 11:45:53 +02:00
|
|
|
style="@style/HeadlineTextView"
|
2021-04-14 14:55:28 +02:00
|
|
|
android:layout_width="0dp"
|
2020-11-30 20:54:05 +01:00
|
|
|
android:layout_height="wrap_content"
|
2021-04-14 14:55:28 +02:00
|
|
|
android:layout_weight="1"
|
2020-11-30 20:54:05 +01:00
|
|
|
android:paddingStart="8dp"
|
2021-04-14 14:55:28 +02:00
|
|
|
android:paddingTop="12dp"
|
|
|
|
|
android:paddingEnd="8dp"
|
2021-04-24 11:45:53 +02:00
|
|
|
android:text="Recently added" />
|
2021-04-14 14:55:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
2021-04-19 17:38:34 +02:00
|
|
|
android:id="@+id/recently_added_tracks_text_view_clickable"
|
2021-04-24 11:45:53 +02:00
|
|
|
style="@style/SubheadTextView"
|
2021-04-14 14:55:28 +02:00
|
|
|
android:layout_width="wrap_content"
|
2020-11-30 20:54:05 +01:00
|
|
|
android:layout_height="wrap_content"
|
2021-04-14 14:55:28 +02:00
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
android:paddingTop="12dp"
|
2020-11-30 20:54:05 +01:00
|
|
|
android:paddingEnd="8dp"
|
2021-04-24 11:45:53 +02:00
|
|
|
android:text="See all" />
|
2021-04-14 14:55:28 +02:00
|
|
|
|
2020-11-30 20:54:05 +01:00
|
|
|
</LinearLayout>
|
2021-04-14 14:55:28 +02:00
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
2021-04-19 17:38:34 +02:00
|
|
|
android:id="@+id/recently_added_tracks_recycler_view"
|
2021-04-14 14:55:28 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
|
android:clipToPadding="false"
|
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
|
android:paddingBottom="8dp" />
|
2020-11-20 15:38:08 +01:00
|
|
|
</LinearLayout>
|
2021-04-14 14:55:28 +02:00
|
|
|
</LinearLayout>
|
|
|
|
|
</androidx.core.widget.NestedScrollView>
|
2020-11-20 15:38:08 +01:00
|
|
|
|