mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-02 02:13:33 +00:00
258 lines
No EOL
11 KiB
XML
258 lines
No EOL
11 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:id="@+id/layout"
|
|
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"
|
|
app:contentScrim="?attr/colorPrimary"
|
|
app:expandedTitleMarginStart="@dimen/activity_margin_content"
|
|
android:fitsSystemWindows="true"
|
|
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:scaleType="centerCrop"
|
|
app:layout_collapseMode="parallax"
|
|
android:fitsSystemWindows="true"/>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/appbar_header_height"
|
|
android:layout_gravity="top"
|
|
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:layout_collapseMode="pin"
|
|
app:popupTheme="@style/ThemeOverlay.MaterialComponents.Light"
|
|
app:titleTextColor="@color/titleTextColor" />
|
|
|
|
</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"
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:clipToPadding="false"
|
|
android:orientation="vertical"
|
|
android:paddingTop="18dp"
|
|
android:paddingBottom="@dimen/global_padding_bottom">
|
|
|
|
<View
|
|
android:id="@+id/upper_button_divider"
|
|
style="@style/Divider"
|
|
android:layout_marginStart="18dp"
|
|
android:layout_marginEnd="18dp"/>
|
|
|
|
<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"
|
|
style="@style/MainButton"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginEnd="4dp"
|
|
android:layout_weight="1"
|
|
android:backgroundTint="@color/buttonBackgroundColor"
|
|
android:padding="10dp"
|
|
android:text="Shuffle"
|
|
android:textAllCaps="false"
|
|
app:icon="@drawable/ic_shuffle"
|
|
app:iconGravity="textStart"
|
|
app:iconPadding="18dp"
|
|
app:iconTint="@color/darkIconColor" />
|
|
|
|
<Button
|
|
android:id="@+id/artist_page_radio_button"
|
|
style="@style/MainButton"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="4dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:layout_weight="1"
|
|
android:backgroundTint="@color/buttonBackgroundColor"
|
|
android:padding="10dp"
|
|
android:text="Radio"
|
|
android:textAllCaps="false"
|
|
app:icon="@drawable/ic_feed"
|
|
app:iconGravity="textStart"
|
|
app:iconPadding="18dp"
|
|
app:iconTint="@color/darkIconColor" />
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:id="@+id/bottom_button_divider"
|
|
style="@style/Divider"
|
|
android:layout_marginStart="18dp"
|
|
android:layout_marginEnd="18dp"
|
|
android:layout_marginBottom="12dp"/>
|
|
|
|
<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
|
|
style="@style/HeadlineTextView"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:paddingStart="16dp"
|
|
android:paddingEnd="8dp"
|
|
android:text="Biography" />
|
|
|
|
<TextView
|
|
android:id="@+id/bio_more_text_view_clickable"
|
|
style="@style/SubheadTextView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingEnd="16dp"
|
|
android:text="More" />
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/bio_text_view"
|
|
style="@style/SubheadTextView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:paddingStart="16dp"
|
|
android:paddingEnd="16dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingBottom="8dp"/>
|
|
</LinearLayout>
|
|
|
|
<!-- Label and button -->
|
|
<LinearLayout
|
|
android:id="@+id/artist_page_top_songs_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
|
|
style="@style/HeadlineTextView"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:paddingStart="16dp"
|
|
android:paddingEnd="8dp"
|
|
android:text="Most Streamed Songs" />
|
|
|
|
<TextView
|
|
android:id="@+id/most_streamed_song_text_view_clickable"
|
|
style="@style/SubheadTextView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingEnd="16dp"
|
|
android:text="See all" />
|
|
</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" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/artist_page_albums_sector"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
style="@style/HeadlineTextView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="16dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingEnd="20dp"
|
|
android:text="Albums" />
|
|
|
|
<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>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/similar_artist_sector"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
style="@style/HeadlineTextView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="16dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingEnd="20dp"
|
|
android:text="More like this" />
|
|
|
|
<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>
|
|
</LinearLayout>
|
|
</androidx.core.widget.NestedScrollView>
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout> |