194 lines
8.4 KiB
XML
194 lines
8.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<include layout="@layout/status_bar" />
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:elevation="@dimen/toolbar_elevation"
|
|
tools:ignore="UnusedAttribute">
|
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
android:id="@+id/toolbar"
|
|
style="@style/Toolbar"
|
|
android:background="@android:color/transparent" />
|
|
|
|
<ViewStub
|
|
android:id="@+id/cab_stub"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="?android:attr/actionBarSize" />
|
|
|
|
</FrameLayout>
|
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:id="@+id/app_bar_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/header"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/detail_header_height"
|
|
android:elevation="@dimen/toolbar_elevation"
|
|
android:orientation="horizontal"
|
|
app:layout_scrollFlags="scroll"
|
|
tools:ignore="UnusedAttribute">
|
|
|
|
<ImageView
|
|
android:id="@+id/image"
|
|
android:layout_width="@dimen/detail_header_image_height"
|
|
android:layout_height="@dimen/detail_header_image_height"
|
|
android:layout_margin="16dp"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/default_album_art"
|
|
android:transitionName="@string/transition_album_art"
|
|
tools:ignore="ContentDescription,UnusedAttribute" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginBottom="16dp"
|
|
android:layout_marginTop="16dp"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="2"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:paddingEnd="16dp"
|
|
android:paddingStart="0dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/artist_icon"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginStart="0dp"
|
|
app:srcCompat="@drawable/ic_person_white_24dp"
|
|
tools:ignore="ContentDescription,UnusedAttribute" />
|
|
|
|
<TextView
|
|
android:ellipsize="end"
|
|
android:maxLines="@integer/detail_header_tile_maxLines"
|
|
android:id="@+id/artist_text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Subhead" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:paddingEnd="16dp"
|
|
android:paddingStart="0dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/song_count_icon"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginStart="0dp"
|
|
app:srcCompat="@drawable/ic_music_note_white_24dp"
|
|
tools:ignore="ContentDescription,UnusedAttribute" />
|
|
|
|
<TextView
|
|
android:id="@+id/song_count_text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:paddingEnd="16dp"
|
|
android:paddingStart="0dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/duration_icon"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginStart="0dp"
|
|
app:srcCompat="@drawable/ic_timer_white_24dp"
|
|
tools:ignore="ContentDescription,UnusedAttribute" />
|
|
|
|
<TextView
|
|
android:id="@+id/duration_text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:paddingEnd="16dp"
|
|
android:paddingStart="0dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/album_year_icon"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginStart="0dp"
|
|
app:srcCompat="@drawable/ic_event_white_24dp"
|
|
tools:ignore="ContentDescription,UnusedAttribute" />
|
|
|
|
<TextView
|
|
android:id="@+id/album_year_text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/list"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:clipToPadding="false"
|
|
android:divider="@null"
|
|
android:dividerHeight="0dp"
|
|
android:scrollbars="none" />
|
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
|
|
</LinearLayout>
|