<?xml version="1.0" encoding="utf-8"?> <layout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"> <data> <variable name="item" type="com.ydl.confide.home.adapter.ItemVideoShowViewModel" /> </data> <androidx.cardview.widget.CardView android:layout_width="180dp" android:layout_height="140dp" android:layout_marginLeft="6dp" android:layout_marginTop="20dp" android:layout_marginRight="6dp" android:layout_marginBottom="10dp" app:cardCornerRadius="8dp" app:cardElevation="0dp"> <ImageView android:layout_width="match_parent" android:layout_height="match_parent" android:scaleType="centerCrop" app:imageUrl="@{item.videoCoverUrl}" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="bottom|left" android:background="@drawable/bg_expert_video_item" android:maxLines="1" android:paddingLeft="10dp" android:paddingBottom="10dp" android:text="@{item.name}" android:textColor="@color/white" android:textSize="15sp" /> <ImageView android:layout_width="33dp" android:layout_height="33dp" android:layout_gravity="center" android:src="@drawable/ic_video_play" /> </androidx.cardview.widget.CardView> </layout>