RetroMusicPlayer/app/src/main/res/layout-xlarge-land/activity_album.xml

146 lines
6.5 KiB
XML
Raw Normal View History

2018-07-27 18:37:33 +05:30
<?xml version="1.0" encoding="utf-8"?>
2018-08-30 14:59:30 +05:30
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
2018-07-27 18:37:33 +05:30
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 09:00:08 +05:30
android:layout_height="match_parent"
android:transitionName="@string/transition_album_art">
2018-07-27 18:37:33 +05:30
2018-08-30 14:59:30 +05:30
<androidx.appcompat.widget.AppCompatImageView
2018-11-30 06:36:16 +05:30
android:id="@+id/artistImage"
2018-07-27 18:37:33 +05:30
android:layout_width="match_parent"
android:layout_height="match_parent"
2019-09-28 23:22:49 +05:30
android:scaleType="centerCrop"
tools:srcCompat="@tools:sample/backgrounds/scenic[12]" />
2018-07-27 18:37:33 +05:30
2018-08-30 14:59:30 +05:30
<com.google.android.material.appbar.AppBarLayout
2018-11-30 06:36:16 +05:30
android:id="@+id/appBarLayout"
2018-07-27 18:37:33 +05:30
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-10-10 19:32:24 +05:30
android:background="@android:color/transparent"
android:elevation="0dp"
app:elevation="0dp">
2018-07-27 18:37:33 +05:30
2018-08-30 14:59:30 +05:30
<com.google.android.material.appbar.CollapsingToolbarLayout
2019-02-23 23:09:02 +05:30
android:layout_width="match_parent"
2018-07-27 18:37:33 +05:30
android:layout_height="wrap_content"
android:background="@android:color/transparent"
app:layout_scrollFlags="scroll|exitUntilCollapsed"
app:titleEnabled="false">
<code.name.monkey.retromusic.views.WidthFitSquareLayout
2019-11-08 22:37:30 +05:30
android:id="@+id/imageContainer"
2018-07-27 18:37:33 +05:30
android:layout_width="320dp"
2018-11-13 09:00:08 +05:30
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal" />
2018-07-27 18:37:33 +05:30
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar"
style="@style/Toolbar"
app:navigationIcon="@drawable/ic_keyboard_backspace_black_24dp" />
<ViewStub
android:id="@+id/cab_stub"
android:layout_width="match_parent"
android:layout_height="48dp" />
</FrameLayout>
2018-08-30 14:59:30 +05:30
</com.google.android.material.appbar.CollapsingToolbarLayout>
</com.google.android.material.appbar.AppBarLayout>
2018-07-27 18:37:33 +05:30
2018-08-30 14:59:30 +05:30
<androidx.core.widget.NestedScrollView
2018-07-27 18:37:33 +05:30
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="fill_vertical"
android:layout_marginStart="128dp"
2018-11-05 19:23:07 +05:30
android:layout_marginEnd="128dp"
2019-12-01 20:57:01 +05:30
android:background="?attr/colorSurface"
2018-07-27 18:37:33 +05:30
android:fillViewport="true"
android:overScrollMode="never"
2019-11-12 23:02:30 +05:30
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior">
2018-07-27 18:37:33 +05:30
2019-06-24 01:44:27 +05:30
<com.google.android.material.card.MaterialCardView
android:id="@+id/contentContainer"
2018-07-27 18:37:33 +05:30
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
app:cardElevation="8dp"
app:shapeAppearanceOverlay="@style/TopCornerCardView">
2018-07-27 18:37:33 +05:30
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-06-24 01:44:27 +05:30
android:orientation="vertical">
2018-07-27 18:37:33 +05:30
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-06-24 01:44:27 +05:30
android:orientation="horizontal">
2018-07-27 18:37:33 +05:30
2019-06-24 01:44:27 +05:30
<code.name.monkey.retromusic.views.WidthFitSquareLayout
android:layout_width="256dp"
2018-07-27 18:37:33 +05:30
android:layout_height="wrap_content"
2019-06-24 01:44:27 +05:30
android:layout_weight="0">
2018-07-27 18:37:33 +05:30
2019-06-24 01:44:27 +05:30
<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 23:22:49 +05:30
android:scaleType="centerCrop"
tools:srcCompat="@tools:sample/backgrounds/scenic[13]" />
2019-06-24 01:44:27 +05:30
</com.google.android.material.card.MaterialCardView>
</code.name.monkey.retromusic.views.WidthFitSquareLayout>
<LinearLayout
2018-07-27 18:37:33 +05:30
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-06-24 01:44:27 +05:30
android:layout_weight="1"
android:orientation="vertical"
android:padding="16dp">
2018-07-27 18:37:33 +05:30
2019-09-28 23:22:49 +05:30
<com.google.android.material.textview.MaterialTextView
2019-06-24 01:44:27 +05:30
android:id="@+id/albumTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:maxLines="2"
2019-09-28 23:22:49 +05:30
android:textAppearance="@style/TextViewHeadline3"
2019-10-03 00:37:12 +05:30
android:textStyle="bold"
2019-09-28 23:22:49 +05:30
tools:ignore="MissingPrefix"
tools:text="Album name" />
2018-07-27 18:37:33 +05:30
2019-09-28 23:22:49 +05:30
<com.google.android.material.textview.MaterialTextView
2019-06-24 01:44:27 +05:30
android:id="@+id/albumText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-10-03 00:37:12 +05:30
android:paddingTop="4dp"
2019-09-28 23:22:49 +05:30
android:textAppearance="@style/TextViewHeadline6"
2019-06-24 01:44:27 +05:30
tools:ignore="MissingPrefix"
2019-09-28 23:22:49 +05:30
tools:text="Album details" />
2019-06-24 01:44:27 +05:30
</LinearLayout>
</LinearLayout>
2018-07-27 18:37:33 +05:30
2019-06-24 01:44:27 +05:30
<include layout="@layout/activity_album_content" />
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
2018-08-30 14:59:30 +05:30
</androidx.core.widget.NestedScrollView>
2018-07-27 18:37:33 +05:30
<View
android:layout_width="match_parent"
android:layout_height="72dp"
android:background="@drawable/shadow_down_strong" />
2018-08-30 14:59:30 +05:30
</androidx.coordinatorlayout.widget.CoordinatorLayout>