79 lines
3.5 KiB
XML
79 lines
3.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<FrameLayout 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:layout_margin="1dp"
|
|
android:background="?attr/rectSelector"
|
|
android:clickable="true"
|
|
android:focusable="true">
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="5dp"
|
|
app:cardCornerRadius="8dp"
|
|
tools:ignore="MissingPrefix">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
tools:ignore="UnusedAttribute,UselessParent">
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/image"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
android:scaleType="centerCrop"
|
|
app:layout_constraintDimensionRatio="1:1"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:ignore="ContentDescription"
|
|
tools:src="@tools:sample/avatars" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/titleContainer"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="vertical"
|
|
android:padding="12dp"
|
|
app:layout_constraintEnd_toStartOf="@id/menu"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/image">
|
|
|
|
<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>
|
|
|
|
<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" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</com.google.android.material.card.MaterialCardView>
|
|
</FrameLayout> |