2018-07-27 13:07:33 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-08-30 09:29:30 +00:00
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2018-07-27 13:07:33 +00:00
|
|
|
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"
|
2018-11-13 03:30:08 +00:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:transitionName="@string/transition_album_art">
|
2018-07-27 13:07:33 +00:00
|
|
|
|
2018-08-30 09:29:30 +00:00
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
2018-11-30 01:06:16 +00:00
|
|
|
android:id="@+id/artistImage"
|
2018-07-27 13:07:33 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2019-09-28 17:52:49 +00:00
|
|
|
android:scaleType="centerCrop"
|
|
|
|
tools:srcCompat="@tools:sample/backgrounds/scenic[12]" />
|
2018-07-27 13:07:33 +00:00
|
|
|
|
|
|
|
|
2018-08-30 09:29:30 +00:00
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
2018-11-30 01:06:16 +00:00
|
|
|
android:id="@+id/appBarLayout"
|
2018-07-27 13:07:33 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@android:color/transparent">
|
|
|
|
|
2018-08-30 09:29:30 +00:00
|
|
|
<com.google.android.material.appbar.CollapsingToolbarLayout
|
2018-11-30 01:06:16 +00:00
|
|
|
android:id="@+id/collapsingToolbarLayout"
|
2019-02-23 17:39:02 +00:00
|
|
|
android:layout_width="match_parent"
|
2018-07-27 13:07:33 +00:00
|
|
|
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"
|
2018-11-13 03:30:08 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal" />
|
2018-07-27 13:07:33 +00:00
|
|
|
|
2019-09-28 17:52:49 +00:00
|
|
|
<com.google.android.material.appbar.MaterialToolbar
|
2018-07-27 13:07:33 +00:00
|
|
|
android:id="@+id/toolbar"
|
2018-12-04 15:34:26 +00:00
|
|
|
style="@style/Toolbar" />
|
2018-08-30 09:29:30 +00:00
|
|
|
</com.google.android.material.appbar.CollapsingToolbarLayout>
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
2018-07-27 13:07:33 +00:00
|
|
|
|
2018-08-30 09:29:30 +00:00
|
|
|
<androidx.core.widget.NestedScrollView
|
2018-07-27 13:07:33 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="fill_vertical"
|
|
|
|
android:layout_marginStart="128dp"
|
2018-11-05 13:53:07 +00:00
|
|
|
android:layout_marginEnd="128dp"
|
2018-11-13 03:30:08 +00:00
|
|
|
android:background="@drawable/bg_bottom_sheet_dialog_fragment"
|
2018-07-27 13:07:33 +00:00
|
|
|
android:fillViewport="true"
|
|
|
|
android:overScrollMode="never"
|
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
|
|
2019-06-23 20:14:27 +00:00
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
android:id="@+id/contentContainer"
|
2018-07-27 13:07:33 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-06-23 20:14:27 +00:00
|
|
|
app:cardCornerRadius="16dp"
|
|
|
|
app:cardElevation="0dp">
|
2018-07-27 13:07:33 +00:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-06-23 20:14:27 +00:00
|
|
|
android:orientation="vertical">
|
2018-07-27 13:07:33 +00:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-06-23 20:14:27 +00:00
|
|
|
android:orientation="horizontal">
|
2018-07-27 13:07:33 +00:00
|
|
|
|
2019-06-23 20:14:27 +00:00
|
|
|
<code.name.monkey.retromusic.views.WidthFitSquareLayout
|
|
|
|
android:layout_width="256dp"
|
2018-07-27 13:07:33 +00:00
|
|
|
android:layout_height="wrap_content"
|
2019-06-23 20:14:27 +00:00
|
|
|
android:layout_weight="0">
|
2018-07-27 13:07:33 +00:00
|
|
|
|
2019-06-23 20:14:27 +00:00
|
|
|
<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"
|
2019-09-28 17:52:49 +00:00
|
|
|
android:scaleType="centerCrop"
|
|
|
|
tools:srcCompat="@tools:sample/backgrounds/scenic[13]" />
|
2019-06-23 20:14:27 +00:00
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
</code.name.monkey.retromusic.views.WidthFitSquareLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
2018-07-27 13:07:33 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-06-23 20:14:27 +00:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:padding="16dp">
|
2018-07-27 13:07:33 +00:00
|
|
|
|
2019-09-28 17:52:49 +00:00
|
|
|
<com.google.android.material.textview.MaterialTextView
|
2019-06-23 20:14:27 +00:00
|
|
|
android:id="@+id/albumTitle"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:maxLines="2"
|
2019-09-28 17:52:49 +00:00
|
|
|
android:textAppearance="@style/TextViewHeadline3"
|
|
|
|
tools:ignore="MissingPrefix"
|
|
|
|
tools:text="Album name" />
|
2018-07-27 13:07:33 +00:00
|
|
|
|
2019-09-28 17:52:49 +00:00
|
|
|
<com.google.android.material.textview.MaterialTextView
|
2019-06-23 20:14:27 +00:00
|
|
|
android:id="@+id/albumText"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-09-28 17:52:49 +00:00
|
|
|
android:textAppearance="@style/TextViewHeadline6"
|
2019-06-23 20:14:27 +00:00
|
|
|
tools:ignore="MissingPrefix"
|
2019-09-28 17:52:49 +00:00
|
|
|
tools:text="Album details" />
|
2019-06-23 20:14:27 +00:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
2018-07-27 13:07:33 +00:00
|
|
|
|
2019-06-23 20:14:27 +00:00
|
|
|
<include layout="@layout/activity_album_content" />
|
|
|
|
</LinearLayout>
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
2018-08-30 09:29:30 +00:00
|
|
|
</androidx.core.widget.NestedScrollView>
|
2018-07-27 13:07:33 +00:00
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="72dp"
|
|
|
|
android:background="@drawable/shadow_down_strong" />
|
2018-08-30 09:29:30 +00:00
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|