-
Notifications
You must be signed in to change notification settings - Fork 39
/
card_items.xml
52 lines (43 loc) · 1.64 KB
/
card_items.xml
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
46
47
48
49
50
51
52
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_margin="10dp"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout
android:orientation="vertical"
android:layout_margin="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:layout_width="match_parent"
android:layout_height="250dp"
android:id="@+id/post_image"
android:scaleType="centerCrop"/>
<TextView
android:id="@+id/post_title_txtview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:textColor="#000"
android:textStyle="bold"
android:text="Post Title"/>
<TextView
android:id="@+id/post_desc_txtview"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_margin="5dp"
android:text="Post Description"/>
<TextView
android:id="@+id/post_user"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:text="Kenny"
android:textSize="15sp"
android:fontFamily="serif"
android:gravity="end"
android:textStyle="bold"
android:textColor="#FF07B618"/>
</LinearLayout>
</android.support.v7.widget.CardView>