47 lines
2.1 KiB
XML
47 lines
2.1 KiB
XML
|
<?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="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:background="?attr/rectSelector"
|
||
|
android:orientation="vertical">
|
||
|
|
||
|
<com.google.android.material.card.MaterialCardView
|
||
|
android:id="@+id/imageContainer"
|
||
|
android:layout_width="156dp"
|
||
|
android:layout_height="200dp"
|
||
|
android:layout_margin="8dp"
|
||
|
app:cardCornerRadius="12dp"
|
||
|
app:layout_constraintDimensionRatio="3:4"
|
||
|
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"
|
||
|
app:srcCompat="@drawable/default_album_art"
|
||
|
tools:src="@tools:sample/avatars" />
|
||
|
|
||
|
<com.google.android.material.textview.MaterialTextView
|
||
|
android:id="@+id/title"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="bottom"
|
||
|
android:background="@drawable/shadow_up"
|
||
|
android:ellipsize="end"
|
||
|
android:maxLines="2"
|
||
|
android:padding="8dp"
|
||
|
android:textAppearance="@style/TextViewBody1"
|
||
|
android:textColor="@color/md_white_1000"
|
||
|
android:textStyle="bold"
|
||
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
app:layout_constraintTop_toBottomOf="@+id/imageContainer"
|
||
|
tools:ignore="MissingPrefix"
|
||
|
tools:text="@tools:sample/full_names" />
|
||
|
</com.google.android.material.card.MaterialCardView>
|
||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|