2018-11-20 20:57:59 +05:30
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2021-09-09 00:00:20 +05:30
|
|
|
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
|
2018-11-20 20:57:59 +05:30
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2021-09-09 00:00:20 +05:30
|
|
|
android:id="@+id/imageContainer"
|
2018-11-20 20:57:59 +05:30
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2021-09-09 00:00:20 +05:30
|
|
|
android:layout_margin="8dp"
|
2020-01-06 11:04:09 +05:30
|
|
|
android:background="?attr/rectSelector"
|
2021-09-09 00:00:20 +05:30
|
|
|
android:orientation="vertical"
|
|
|
|
android:padding="4dp"
|
2021-11-12 17:04:33 +05:30
|
|
|
app:cardCornerRadius="@dimen/m3_card_corner_radius"
|
2021-09-09 00:00:20 +05:30
|
|
|
app:layout_constraintDimensionRatio="3:4"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
2018-11-20 20:57:59 +05:30
|
|
|
|
2021-09-09 00:00:20 +05:30
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content">
|
2018-11-20 20:57:59 +05:30
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/image"
|
2021-09-09 00:00:20 +05:30
|
|
|
android:layout_width="156dp"
|
|
|
|
android:layout_height="156dp"
|
2019-10-26 19:44:09 +05:30
|
|
|
android:scaleType="centerCrop"
|
2021-09-09 00:00:20 +05:30
|
|
|
app:layout_constraintBottom_toTopOf="@+id/title"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2020-05-14 19:07:15 +05:30
|
|
|
app:srcCompat="@drawable/default_album_art"
|
2019-10-26 19:44:09 +05:30
|
|
|
tools:src="@tools:sample/avatars" />
|
2019-09-28 23:22:49 +05:30
|
|
|
|
2020-08-13 13:54:36 +05:30
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
android:id="@+id/title"
|
2021-09-09 00:00:20 +05:30
|
|
|
android:layout_width="0dp"
|
2020-08-13 13:54:36 +05:30
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="2"
|
|
|
|
android:padding="8dp"
|
2021-09-09 00:00:20 +05:30
|
|
|
android:singleLine="true"
|
2020-08-13 13:54:36 +05:30
|
|
|
android:textAppearance="@style/TextViewBody1"
|
2021-09-09 00:00:20 +05:30
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2020-08-13 13:54:36 +05:30
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
tools:ignore="MissingPrefix"
|
|
|
|
tools:text="@tools:sample/full_names" />
|
2021-09-09 00:00:20 +05:30
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|