2020-07-13 20:39:47 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout 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="wrap_content"
|
|
|
|
android:padding="4dp">
|
|
|
|
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
android:id="@+id/title"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
2020-08-13 08:24:36 +00:00
|
|
|
android:padding="16dp"
|
2020-07-13 20:39:47 +00:00
|
|
|
android:text="@string/suggestion_songs"
|
|
|
|
android:textAppearance="@style/TextViewHeadline6"
|
|
|
|
android:textStyle="bold"
|
|
|
|
app:layout_constrainedWidth="true"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
2020-08-11 18:58:14 +00:00
|
|
|
|
2020-07-13 20:39:47 +00:00
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
android:id="@+id/card1"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2021-11-12 11:34:33 +00:00
|
|
|
app:cardCornerRadius="@dimen/m3_card_corner_radius"
|
2020-07-13 20:39:47 +00:00
|
|
|
app:cardUseCompatPadding="true"
|
|
|
|
app:layout_constraintDimensionRatio="1,1"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/card2"
|
|
|
|
app:layout_constraintHorizontal_weight="2"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/card6">
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/image4"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
tools:src="@tools:sample/avatars" />
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
android:id="@+id/card2"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2021-11-12 11:34:33 +00:00
|
|
|
app:cardCornerRadius="@dimen/m3_card_corner_radius"
|
2020-07-13 20:39:47 +00:00
|
|
|
app:cardUseCompatPadding="true"
|
|
|
|
app:layout_constraintDimensionRatio="1,1"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/card3"
|
|
|
|
app:layout_constraintHorizontal_weight="2"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/card1"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/card6">
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/image5"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
tools:src="@tools:sample/avatars" />
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
android:id="@+id/card3"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2021-11-12 11:34:33 +00:00
|
|
|
app:cardCornerRadius="@dimen/m3_card_corner_radius"
|
2020-07-13 20:39:47 +00:00
|
|
|
app:cardUseCompatPadding="true"
|
|
|
|
app:layout_constraintDimensionRatio="1,1"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/card4"
|
|
|
|
app:layout_constraintHorizontal_weight="2"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/card2"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/card6">
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/image6"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
tools:src="@tools:sample/avatars" />
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
android:id="@+id/card4"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2021-11-12 11:34:33 +00:00
|
|
|
app:cardCornerRadius="@dimen/m3_card_corner_radius"
|
2020-07-13 20:39:47 +00:00
|
|
|
app:cardUseCompatPadding="true"
|
|
|
|
app:layout_constraintDimensionRatio="1,1"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/card5"
|
|
|
|
app:layout_constraintHorizontal_weight="2"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/card3"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/card6">
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/image7"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
tools:src="@tools:sample/avatars" />
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
android:id="@+id/card5"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2021-11-12 11:34:33 +00:00
|
|
|
app:cardCornerRadius="@dimen/m3_card_corner_radius"
|
2020-07-13 20:39:47 +00:00
|
|
|
app:cardUseCompatPadding="true"
|
|
|
|
app:layout_constraintDimensionRatio="1,1"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintHorizontal_weight="2"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/card4"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/card6">
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/image8"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
tools:src="@tools:sample/avatars" />
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
android:id="@+id/card6"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
app:cardBackgroundColor="?attr/colorSurface"
|
2021-11-12 11:34:33 +00:00
|
|
|
app:cardCornerRadius="@dimen/m3_card_corner_radius"
|
2020-08-11 18:58:14 +00:00
|
|
|
app:cardElevation="0dp"
|
2020-07-13 20:39:47 +00:00
|
|
|
app:cardUseCompatPadding="true"
|
|
|
|
app:layout_constraintDimensionRatio="1,1"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/card7"
|
|
|
|
app:layout_constraintHorizontal_weight="4"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-08-13 08:24:36 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/title">
|
2020-07-13 20:39:47 +00:00
|
|
|
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
2020-08-11 18:58:14 +00:00
|
|
|
android:id="@+id/message"
|
2020-07-13 20:39:47 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-08-13 12:36:24 +00:00
|
|
|
android:autoSizeTextType="uniform"
|
2020-07-13 20:39:47 +00:00
|
|
|
android:padding="8dp"
|
|
|
|
android:text="New music mix"
|
2020-08-13 12:36:24 +00:00
|
|
|
android:textAppearance="@style/TextViewNormal"
|
2020-09-24 15:21:08 +00:00
|
|
|
android:textSize="32sp"
|
2021-09-16 12:59:31 +00:00
|
|
|
android:textStyle="bold"
|
2020-08-13 12:36:24 +00:00
|
|
|
app:autoSizeMaxTextSize="32sp"
|
2020-09-24 15:21:08 +00:00
|
|
|
app:autoSizeMinTextSize="24sp"
|
2020-08-13 12:36:24 +00:00
|
|
|
app:autoSizeStepGranularity="1sp" />
|
2020-07-13 20:39:47 +00:00
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
android:id="@+id/card7"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2021-11-12 11:34:33 +00:00
|
|
|
app:cardCornerRadius="@dimen/m3_card_corner_radius"
|
2020-07-13 20:39:47 +00:00
|
|
|
app:cardUseCompatPadding="true"
|
|
|
|
app:layout_constraintDimensionRatio="1,1"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/card8"
|
|
|
|
app:layout_constraintHorizontal_weight="2"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/card6"
|
2020-08-13 08:24:36 +00:00
|
|
|
app:layout_constraintTop_toTopOf="@id/card6">
|
2020-07-13 20:39:47 +00:00
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/image1"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
tools:src="@tools:sample/avatars" />
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
android:id="@+id/card8"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2021-11-12 11:34:33 +00:00
|
|
|
app:cardCornerRadius="@dimen/m3_card_corner_radius"
|
2020-07-13 20:39:47 +00:00
|
|
|
app:cardUseCompatPadding="true"
|
|
|
|
app:layout_constraintDimensionRatio="1,1"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintHorizontal_weight="4"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/card7"
|
2020-08-13 08:24:36 +00:00
|
|
|
app:layout_constraintTop_toTopOf="@id/card7">
|
2020-07-13 20:39:47 +00:00
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/image2"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
tools:src="@tools:sample/avatars" />
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2021-11-12 11:34:33 +00:00
|
|
|
app:cardCornerRadius="@dimen/m3_card_corner_radius"
|
2020-07-13 20:39:47 +00:00
|
|
|
app:cardUseCompatPadding="true"
|
|
|
|
app:layout_constraintDimensionRatio="1,1"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/card8"
|
|
|
|
app:layout_constraintHorizontal_weight="2"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/card6"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/card7">
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/image3"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
tools:src="@tools:sample/avatars" />
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|