2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 xmlns:tools="http://schemas.android.com/tools"
4 android:orientation="vertical"
5 android:layout_width="match_parent"
6 android:layout_height="wrap_content"
7 android:layout_margin="4dp"
8 android:background="#ffffff"
9 android:elevation="2dp">
10
11 <ImageView
12 android:contentDescription="@id/item_title"
13 android:id="@+id/item_image"
14 android:layout_width="match_parent"
15 android:layout_height="170dp"
16 android:scaleType="centerCrop"
17 tools:src="@drawable/img_7" />
18
19 <TextView
20 android:id="@+id/item_title"
21 android:layout_width="match_parent"
22 android:layout_height="wrap_content"
23 android:layout_marginTop="8dp"
24 android:paddingStart="8dp"
25 android:paddingEnd="8dp"
26 android:lines="1"
27 android:ellipsize="end"
28 android:textColor="#000000"
29 android:textSize="18sp"
30 tools:text="Item Title" />
31
32 <TextView
33 android:id="@+id/item_sub_title"
34 android:layout_width="match_parent"
35 android:layout_height="wrap_content"
36 android:layout_marginBottom="8dp"
37 android:paddingStart="8dp"
38 android:paddingEnd="8dp"
39 android:lines="1"
40 android:ellipsize="end"
41 android:textSize="14sp"
42 tools:text="Sub Title" />
43
44 </LinearLayout>
|