2020-11-20 15:38:08 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
app:layout_behavior="@string/hide_bottom_view_on_scroll_behavior">
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:paddingBottom="8dp">
|
|
|
|
|
|
|
|
|
|
<!-- Discover music -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
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:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:fontFamily="@font/open_sans_font_family"
|
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
android:paddingTop="12dp"
|
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
|
android:text="Discover Music"
|
|
|
|
|
android:textColor="@color/titleTextColor"
|
|
|
|
|
android:textSize="22sp"
|
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:fontFamily="@font/open_sans_font_family"
|
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
android:paddingTop="12dp"
|
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
|
android:text="See all"
|
|
|
|
|
android:textColor="@color/subtitleTextColor"
|
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<!-- slideview -->
|
|
|
|
|
<androidx.viewpager.widget.ViewPager
|
|
|
|
|
android:id="@+id/discover_song_view_pager"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="152dp"
|
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
|
android:clipToPadding="false"
|
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
|
android:paddingEnd="16dp"
|
|
|
|
|
android:paddingBottom="8dp" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<!-- Recently played tracks -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
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:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:fontFamily="@font/open_sans_font_family"
|
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
android:paddingTop="12dp"
|
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
|
android:text="Recently played tracks"
|
|
|
|
|
android:textColor="@color/titleTextColor"
|
|
|
|
|
android:textSize="22sp"
|
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:fontFamily="@font/open_sans_font_family"
|
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
android:paddingTop="12dp"
|
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
|
android:text="See all"
|
|
|
|
|
android:textColor="@color/subtitleTextColor"
|
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
|
android:id="@+id/recently_played_tracks_recycler_view"
|
|
|
|
|
android:layout_width="match_parent"
|
2020-11-21 18:41:35 +01:00
|
|
|
android:layout_height="wrap_content"
|
2020-11-20 15:38:08 +01:00
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
|
android:clipToPadding="false"
|
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
|
android:paddingBottom="8dp" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<!-- Most played tracks -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
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:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:fontFamily="@font/open_sans_font_family"
|
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
android:paddingTop="12dp"
|
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
|
android:text="Most played tracks"
|
|
|
|
|
android:textColor="@color/titleTextColor"
|
|
|
|
|
android:textSize="22sp"
|
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:fontFamily="@font/open_sans_font_family"
|
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
android:paddingTop="12dp"
|
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
|
android:text="See all"
|
|
|
|
|
android:textColor="@color/subtitleTextColor"
|
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
|
android:id="@+id/most_played_tracks_recycler_view"
|
|
|
|
|
android:layout_width="match_parent"
|
2020-11-21 18:41:35 +01:00
|
|
|
android:layout_height="wrap_content"
|
2020-11-20 15:38:08 +01:00
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
|
android:clipToPadding="false"
|
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
|
android:paddingBottom="8dp" />
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/resync_button"
|
|
|
|
|
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="24dp"
|
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
|
android:text="Resync"
|
|
|
|
|
android:textAllCaps="false"
|
|
|
|
|
android:textColor="@color/normalTextColor"
|
|
|
|
|
app:cornerRadius="24dp"/>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
|
|