item_policy.xml
3.47 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
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
96
97
98
99
100
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="150dp"
android:layout_margin="7dp"
android:background="@drawable/round_ractagle_solid"
android:orientation="horizontal">
<ImageView
android:id="@+id/policyImage"
android:layout_width="120dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:paddingLeft="7dp"
tools:srcCompat="@tools:sample/avatars" />
<LinearLayout
android:layout_width="200dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="10dp"
android:layout_weight="1"
android:orientation="horizontal">
<TextView
android:id="@+id/policyDday"
android:layout_width="77dp"
android:layout_height="39dp"
android:background="@drawable/broken_rectangle"
android:gravity="center"
android:text="TextView"
android:textColor="#FFF"
android:textSize="18sp" />
<ToggleButton
android:id="@+id/policyFavor"
android:layout_width="22dp"
android:layout_height="25dp"
android:layout_alignParentRight="true"
android:layout_gravity="right"
android:layout_marginTop="11dp"
android:layout_marginRight="20dp"
android:layout_weight="0"
android:background="@drawable/toggle_selector"
android:checked="false"
android:textOff=""
android:textOn="" />
</RelativeLayout>
<TextView
android:id="@+id/policyHost"
android:layout_width="match_parent"
android:layout_height="10dp"
android:layout_marginLeft="14dp"
android:layout_marginRight="12dp"
android:layout_weight="0.7"
android:ellipsize="end"
android:gravity="bottom|left|center_vertical"
android:maxLines="1"
android:text="TextView"
android:textColor="#C04A4A4A"
android:textSize="13dp" />
<TextView
android:id="@+id/policyTitle"
android:layout_width="match_parent"
android:layout_height="10dp"
android:layout_marginLeft="11dp"
android:layout_marginRight="10dp"
android:layout_weight="1"
android:ellipsize="end"
android:gravity="left|center_vertical"
android:maxLines="1"
android:text="TextView"
android:textColor="#000"
android:textSize="18dp" />
<RatingBar
android:id="@+id/policyScore"
android:layout_width="240dp"
android:layout_height="22dp"
android:layout_gravity="center"
android:layout_weight="1"
android:max="5"
android:rating="3.5"
android:scaleX=".5"
android:scaleY="0.5"
android:transformPivotX="0dp"
android:transformPivotY="0dp" />
</LinearLayout>
</LinearLayout>