-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsingle_expense_item.xml
95 lines (79 loc) · 3.58 KB
/
single_expense_item.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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">
<android.support.v7.widget.CardView
android:layout_height="wrap_content"
android:layout_width="match_parent"
app:cardCornerRadius="5dp">
<RelativeLayout
android:layout_height="match_parent"
android:layout_width="match_parent"
android:background="@color/colorAccent"
android:padding="8dp">
<TextView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:textSize="18sp"
android:fontFamily="sans-serif"
android:text="1."
android:id="@+id/expenseRankTV"/>
<TextView
android:id="@+id/tv_expenseTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginLeft="10dp"
android:layout_toRightOf="@+id/expenseRankTV"
android:textColor="#FFFFFF"
android:textSize="17sp"
android:textStyle="bold|italic" />
<TextView
android:id="@+id/tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/expenseRankTV"
android:fontFamily="sans-serif"
android:text="Date:"
android:layout_marginTop="8dp"
android:textSize="15sp"/>
<TextView
android:id="@+id/tv_expenseDate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/expenseRankTV"
android:layout_marginLeft="4dp"
android:layout_marginTop="8dp"
android:layout_toRightOf="@+id/tv"
android:fontFamily="sans-serif"
android:text="wed 12 2018"
android:textColor="#FFFFFF"
android:textSize="15sp"
android:textStyle="bold|italic" />
<TextView
android:id="@+id/tv2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/expenseRankTV"
android:text="Amount:"
android:fontFamily="sans-serif"
android:layout_marginTop="8dp"
android:layout_toLeftOf="@+id/tv_expenseAmount"
android:textSize="15sp"
android:layout_marginRight="4dp"/>
<TextView
android:id="@+id/tv_expenseAmount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/expenseRankTV"
android:text="10000"
android:textStyle="bold|italic"
android:textColor="#FFFFFF"
android:fontFamily="sans-serif"
android:layout_marginTop="8dp"
android:layout_alignParentRight="true"
android:textSize="15sp"/>
</RelativeLayout>
</android.support.v7.widget.CardView>
</LinearLayout>