75 lines
No EOL
3.3 KiB
XML
75 lines
No EOL
3.3 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:id="@+id/imageContainerCard"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="5dp"
|
|
app:cardCornerRadius="@dimen/m3_card_corner_radius">
|
|
|
|
<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="80dp"
|
|
android:layout_height="80dp"
|
|
android:layout_marginTop="24dp"
|
|
android:elevation="4dp"
|
|
android:rotation="30"
|
|
android:scaleType="centerCrop"
|
|
android:translationX="20dp"
|
|
android:translationY="10dp"
|
|
app:layout_constraintDimensionRatio="1:1"
|
|
app:layout_constraintEnd_toEndOf="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:layout_marginStart="4dp"
|
|
android:gravity="center_vertical"
|
|
android:orientation="vertical"
|
|
android:paddingStart="8dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingEnd="0dp"
|
|
app:layout_constraintEnd_toStartOf="@+id/image"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:maxLines="2"
|
|
android:textAppearance="@style/TextViewSubtitle2"
|
|
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.constraintlayout.widget.ConstraintLayout>
|
|
</com.google.android.material.card.MaterialCardView>
|
|
</FrameLayout> |