Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools">
- <com.google.android.material.card.MaterialCardView
- android:id="@+id/card"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="8dp"
- android:layout_marginStart="15dp"
- android:layout_marginTop="10dp"
- android:layout_marginEnd="5dp"
- app:strokeWidth="3dp"
- app:strokeColor="@color/background"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical">
- <!-- Media -->
- <ImageView
- android:id="@+id/image"
- android:layout_width="match_parent"
- android:layout_height="180dp"
- android:contentDescription="@string/content_description_media"
- android:scaleType="centerCrop"
- tools:src="@tools:sample/avatars" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:padding="6dp">
- <!-- Title, secondary and supporting text -->
- <TextView
- android:id="@+id/name"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textSize="18sp"
- tools:text="@string/app_name" />
- </LinearLayout>
- </LinearLayout>
- </com.google.android.material.card.MaterialCardView>
- </androidx.constraintlayout.widget.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement