tempus/app/src/main/res/layout/fragment_artist_page.xml

136 lines
5.8 KiB
XML
Raw Normal View History

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"
android:id="@+id/layout"
2020-11-22 19:11:38 +01:00
android:layout_width="match_parent"
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"
2020-12-05 21:31:12 +01:00
android:layout_height="@dimen/appbar_header_height"
android:fitsSystemWindows="true"
android:theme="@style/ThemeOverlay.MaterialComponents.Dark.ActionBar">
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:contentScrim="?attr/colorPrimary"
app:expandedTitleMarginStart="@dimen/activity_margin_content"
android:fitsSystemWindows="true"
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"
android:scaleType="centerCrop"
app:layout_collapseMode="parallax"
android:fitsSystemWindows="true"/>
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"
android:background="@drawable/gradient_backdrop_background_image"/>
2021-04-24 11:45:53 +02:00
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/artist_page_fab_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-04-24 11:45:53 +02:00
android:layout_alignParentEnd="true"
android:layout_gravity="bottom|end"
2021-04-24 11:45:53 +02:00
android:layout_margin="16dp"
android:layout_marginLeft="16dp"
2021-04-24 11:45:53 +02:00
android:contentDescription="Shuffle"
android:src="@drawable/ic_shuffle"
app:backgroundTint="@color/colorAccent"
app:fabSize="mini"
app:layout_anchor="@id/app_bar_layout"
app:layout_anchorGravity="bottom|end"
2021-04-24 11:45:53 +02:00
app:tint="@android:color/white" />
2020-11-22 19:11:38 +01:00
2020-12-05 21:31:12 +01:00
<androidx.appcompat.widget.Toolbar
android:id="@+id/anim_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:layout_collapseMode="pin"
2021-04-24 11:45:53 +02:00
app:popupTheme="@style/ThemeOverlay.MaterialComponents.Light"
app:titleTextColor="@color/titleTextColor" />
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
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
<!-- Label and button -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-04-24 11:45:53 +02:00
android:orientation="horizontal">
2020-12-05 21:31:12 +01:00
<TextView
2021-04-24 11:45:53 +02:00
style="@style/HeadlineTextView"
2020-12-05 21:31:12 +01:00
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:paddingStart="16dp"
android:paddingEnd="8dp"
2021-04-24 11:45:53 +02:00
android:text="Most Streamed Songs" />
2020-12-05 21:31:12 +01:00
<TextView
android:id="@+id/most_streamed_song_text_view_clickable"
2021-04-24 11:45:53 +02:00
style="@style/SubheadTextView"
2020-12-05 21:31:12 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingEnd="16dp"
2021-04-24 11:45:53 +02:00
android:text="See all" />
2020-12-05 21:31:12 +01: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"
android:clipToPadding="false"
android:paddingTop="8dp"
android:paddingBottom="16dp" />
2020-11-22 19:11:38 +01:00
<TextView
2021-04-24 11:45:53 +02:00
style="@style/HeadlineTextView"
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"
2020-12-05 21:31:12 +01:00
android:paddingStart="16dp"
2021-04-24 11:45:53 +02:00
android:paddingTop="8dp"
2020-12-05 21:31:12 +01:00
android:paddingEnd="20dp"
2021-04-24 11:45:53 +02:00
android:text="Albums" />
2020-11-22 19:11:38 +01:00
2020-12-05 21:31:12 +01: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"
2020-11-22 19:11:38 +01:00
android:paddingEnd="8dp"
2020-12-05 21:31:12 +01:00
android:paddingBottom="8dp" />
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>