130 lines
No EOL
5.9 KiB
XML
130 lines
No EOL
5.9 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"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/root"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:transitionName="@string/transition_album_art">
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/artistImage"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scaleType="centerCrop"
|
|
tools:srcCompat="@tools:sample/backgrounds/scenic[12]" />
|
|
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:id="@+id/appBarLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@android:color/transparent">
|
|
|
|
<com.google.android.material.appbar.CollapsingToolbarLayout
|
|
android:id="@+id/collapsingToolbarLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@android:color/transparent"
|
|
app:layout_scrollFlags="scroll|exitUntilCollapsed"
|
|
app:titleEnabled="false">
|
|
|
|
<code.name.monkey.retromusic.views.WidthFitSquareLayout
|
|
android:id="@+id/image_container"
|
|
android:layout_width="320dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal" />
|
|
|
|
<com.google.android.material.appbar.MaterialToolbar
|
|
android:id="@+id/toolbar"
|
|
style="@style/Toolbar" />
|
|
</com.google.android.material.appbar.CollapsingToolbarLayout>
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="fill_vertical"
|
|
android:layout_marginStart="128dp"
|
|
android:layout_marginEnd="128dp"
|
|
android:background="@drawable/bg_bottom_sheet_dialog_fragment"
|
|
android:fillViewport="true"
|
|
android:overScrollMode="never"
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:id="@+id/contentContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:cardCornerRadius="16dp"
|
|
app:cardElevation="0dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<code.name.monkey.retromusic.views.WidthFitSquareLayout
|
|
android:layout_width="256dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0">
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_margin="8dp"
|
|
app:cardCornerRadius="8dp"
|
|
app:cardElevation="4dp"
|
|
app:cardUseCompatPadding="true">
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/image"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scaleType="centerCrop"
|
|
tools:srcCompat="@tools:sample/backgrounds/scenic[13]" />
|
|
</com.google.android.material.card.MaterialCardView>
|
|
</code.name.monkey.retromusic.views.WidthFitSquareLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical"
|
|
android:padding="16dp">
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/albumTitle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:maxLines="2"
|
|
android:textAppearance="@style/TextViewHeadline3"
|
|
tools:ignore="MissingPrefix"
|
|
tools:text="Album name" />
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/albumText"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="@style/TextViewHeadline6"
|
|
tools:ignore="MissingPrefix"
|
|
tools:text="Album details" />
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<include layout="@layout/activity_album_content" />
|
|
</LinearLayout>
|
|
</com.google.android.material.card.MaterialCardView>
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="72dp"
|
|
android:background="@drawable/shadow_down_strong" />
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout> |