mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 09:33:33 +00:00
128 lines
No EOL
5.5 KiB
XML
128 lines
No EOL
5.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
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">
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:id="@+id/appbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/appbar_header_height"
|
|
android:fitsSystemWindows="true"
|
|
android:theme="@style/ThemeOverlay.MaterialComponents.Dark.ActionBar">
|
|
|
|
<com.google.android.material.appbar.CollapsingToolbarLayout
|
|
android:id="@+id/collapsing_toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fitsSystemWindows="true"
|
|
app:contentScrim="?attr/colorPrimary"
|
|
app:expandedTitleMarginStart="@dimen/activity_margin_content"
|
|
app:layout_scrollFlags="scroll|exitUntilCollapsed|snap">
|
|
|
|
<ImageView
|
|
android:id="@+id/artist_backdrop_image_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fitsSystemWindows="true"
|
|
android:scaleType="centerCrop"
|
|
app:layout_collapseMode="parallax" />
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/appbar_header_height"
|
|
android:layout_gravity="top"
|
|
android:fitsSystemWindows="true"
|
|
android:background="@drawable/gradient_backdrop_background_image"/>
|
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
android:id="@+id/anim_toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="?attr/actionBarSize"
|
|
app:titleTextColor="@color/titleTextColor"
|
|
app:layout_collapseMode="pin"
|
|
app:popupTheme="@style/ThemeOverlay.MaterialComponents.Light" />
|
|
|
|
</com.google.android.material.appbar.CollapsingToolbarLayout>
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:fillViewport="true"
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:clipToPadding="false"
|
|
android:paddingTop="18dp"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="@dimen/global_padding_bottom">
|
|
|
|
<!-- Label and button -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal" >
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:fontFamily="@font/open_sans_font_family"
|
|
android:paddingStart="16dp"
|
|
android:paddingEnd="8dp"
|
|
android:text="Most Streamed Songs"
|
|
android:textColor="@color/titleTextColor"
|
|
android:textSize="22sp"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:id="@+id/most_streamed_song_text_view_clickable"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/open_sans_font_family"
|
|
android:paddingEnd="16dp"
|
|
android:text="See all"
|
|
android:textColor="@color/subtitleTextColor"
|
|
android:textSize="14sp" />
|
|
</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" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/open_sans_font_family"
|
|
android:paddingTop="8dp"
|
|
android:paddingStart="16dp"
|
|
android:paddingEnd="20dp"
|
|
android:text="Albums"
|
|
android:textColor="@color/titleTextColor"
|
|
android:textSize="22sp"
|
|
android:textStyle="bold" />
|
|
|
|
<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>
|
|
</androidx.core.widget.NestedScrollView>
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout> |