2018-07-27 13:07:33 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-05-14 13:37:15 +00:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2018-11-05 13:53:07 +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"
|
2018-11-05 13:53:07 +00:00
|
|
|
android:layout_height="wrap_content"
|
2020-05-14 13:37:15 +00:00
|
|
|
android:layout_margin="2dp"
|
2020-01-06 05:34:09 +00:00
|
|
|
android:background="?rectSelector"
|
2019-12-07 15:43:27 +00:00
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
2020-05-14 13:37:15 +00:00
|
|
|
android:padding="4dp"
|
2018-11-05 13:53:07 +00:00
|
|
|
tools:ignore="MissingPrefix">
|
2018-07-27 13:07:33 +00:00
|
|
|
|
2020-05-14 13:37:15 +00:00
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
android:id="@+id/imageContainer"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:scaleType="centerCrop"
|
2021-09-08 18:30:20 +00:00
|
|
|
app:cardBackgroundColor="@color/transparent"
|
2021-11-12 11:34:33 +00:00
|
|
|
app:cardCornerRadius="@dimen/m3_card_corner_radius"
|
2020-05-14 13:37:15 +00:00
|
|
|
app:layout_constraintDimensionRatio="1:1"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
2018-07-27 13:07:33 +00:00
|
|
|
|
2020-05-14 13:37:15 +00:00
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
2020-02-25 13:15:23 +00:00
|
|
|
android:id="@+id/image"
|
2018-11-05 13:53:07 +00:00
|
|
|
android:layout_width="match_parent"
|
2019-12-07 15:43:27 +00:00
|
|
|
android:layout_height="match_parent"
|
2020-02-25 13:15:23 +00:00
|
|
|
android:scaleType="centerCrop"
|
|
|
|
tools:ignore="ContentDescription"
|
|
|
|
tools:srcCompat="@tools:sample/backgrounds/scenic" />
|
2018-11-05 13:53:07 +00:00
|
|
|
|
2020-05-14 13:37:15 +00:00
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
|
2020-05-20 23:55:28 +00:00
|
|
|
<LinearLayout
|
2020-10-17 20:19:47 +00:00
|
|
|
android:id="@+id/titleContainer"
|
|
|
|
android:layout_width="0dp"
|
2020-05-14 13:37:15 +00:00
|
|
|
android:layout_height="wrap_content"
|
2020-05-20 23:55:28 +00:00
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:padding="12dp"
|
2020-10-17 20:19:47 +00:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/menu"
|
2020-05-14 13:37:15 +00:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-05-20 23:55:28 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/imageContainer">
|
2018-07-27 13:07:33 +00:00
|
|
|
|
2020-05-20 23:55:28 +00:00
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
android:id="@+id/title"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textAppearance="@style/TextViewSubtitle1"
|
|
|
|
android:textStyle="bold"
|
|
|
|
tools:text="@tools:sample/full_names" />
|
|
|
|
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
android:id="@+id/text"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingTop="4dp"
|
|
|
|
android:singleLine="true"
|
|
|
|
tools:text="@tools:sample/full_names" />
|
|
|
|
</LinearLayout>
|
2018-07-27 13:07:33 +00:00
|
|
|
|
2020-10-17 20:19:47 +00:00
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/menu"
|
|
|
|
style="@style/OverFlowButton"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_weight="0"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/titleContainer"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/titleContainer"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/titleContainer"
|
|
|
|
app:tint="?attr/colorControlNormal" />
|
2020-05-14 13:37:15 +00:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|