-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrow.xml
More file actions
45 lines (44 loc) · 1.77 KB
/
row.xml
File metadata and controls
45 lines (44 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
app:contentPadding="5dp"
app:cardElevation="3dp"
app:cardCornerRadius="3dp"
app:cardUseCompatPadding="true"
app:cardBackgroundColor="@color/white">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:padding="16dp">
<ImageView
android:layout_width="90dp"
android:layout_height="100dp"
android:src="@mipmap/ic_launcher"
android:id="@+id/image"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Main Title"
android:textColor="#000"
android:textStyle="bold"
android:layout_margin="5dp"
android:textSize="20sp"
android:id="@+id/textView1"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Author"
android:textColor="#000"
android:layout_margin="5dp"
android:textSize="15sp"
android:id="@+id/textView2"/>
</LinearLayout>
</LinearLayout>
</androidx.cardview.widget.CardView>