PlayerAndroid/app/src/main/res/layout/fragment_artist_details.xml

111 lines
5 KiB
XML
Raw Normal View History

2018-07-27 13:07:33 +00:00
<?xml version="1.0" encoding="utf-8"?>
2020-08-13 08:24:36 +00:00
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
2018-08-08 08:03:38 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
2020-08-13 08:24:36 +00:00
android:layout_height="match_parent">
2018-07-27 13:07:33 +00:00
2020-08-13 08:24:36 +00:00
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/appBarLayout"
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
2020-08-13 08:24:36 +00:00
android:layout_height="wrap_content"
app:liftOnScroll="true">
2018-07-27 13:07:33 +00:00
2020-08-13 08:24:36 +00:00
<FrameLayout
2019-11-08 15:38:34 +00:00
android:layout_width="match_parent"
2020-08-13 08:24:36 +00:00
android:layout_height="wrap_content">
2018-08-08 08:03:38 +00:00
2020-08-13 08:24:36 +00:00
<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar"
style="@style/Toolbar"
android:background="?attr/colorSurface"
app:navigationIcon="@drawable/ic_keyboard_backspace_black" />
2020-08-13 08:24:36 +00:00
<ViewStub
android:id="@+id/cab_stub"
android:layout_width="match_parent"
android:layout_height="48dp" />
</FrameLayout>
</com.google.android.material.appbar.AppBarLayout>
2020-08-13 08:24:36 +00:00
<androidx.core.widget.NestedScrollView
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:overScrollMode="never"
android:descendantFocusability="beforeDescendants"
android:focusableInTouchMode="true"
2020-08-13 08:24:36 +00:00
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior">
2018-08-01 06:51:27 +00:00
2020-08-13 08:24:36 +00:00
<androidx.constraintlayout.widget.ConstraintLayout
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-08-13 08:24:36 +00:00
android:orientation="vertical">
<com.google.android.material.card.MaterialCardView
android:id="@+id/artistCoverContainer"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginStart="16dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="16dp"
app:cardCornerRadius="24dp"
app:layout_constraintDimensionRatio="1:1"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/image"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
2020-08-11 18:29:44 +00:00
android:transitionName="@string/transition_artist_image"
2020-08-13 08:24:36 +00:00
tools:srcCompat="@tools:sample/backgrounds/scenic" />
2019-11-08 15:38:34 +00:00
2020-08-13 08:24:36 +00:00
</com.google.android.material.card.MaterialCardView>
2019-11-08 15:38:34 +00:00
2020-08-13 08:24:36 +00:00
<code.name.monkey.retromusic.views.BaselineGridTextView
android:id="@+id/artistTitle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="24dp"
android:layout_marginEnd="16dp"
android:maxLines="2"
2020-08-21 05:01:53 +00:00
android:textAppearance="@style/TextViewHeadline4.Compress"
2020-08-13 08:24:36 +00:00
android:textColor="?android:attr/textColorPrimary"
android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/artistCoverContainer"
tools:ignore="MissingPrefix"
tools:text="@tools:sample/full_names" />
<code.name.monkey.retromusic.views.BaselineGridTextView
android:id="@+id/text"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
2020-08-21 17:07:10 +00:00
android:textAppearance="@style/TextViewSubtitle1"
2020-08-13 08:24:36 +00:00
android:textColor="?android:attr/textColorSecondary"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/artistTitle"
tools:ignore="MissingPrefix"
tools:text="@tools:sample/full_names" />
<include
layout="@layout/fragment_artist_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/text" />
2020-08-11 18:29:44 +00:00
2019-11-08 15:38:34 +00:00
2020-08-13 08:24:36 +00:00
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.core.widget.NestedScrollView>
</androidx.coordinatorlayout.widget.CoordinatorLayout>