wancms_deduction_layout.xml
3.8 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
101
102
103
104
105
106
107
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/common_white">
<LinearLayout
android:id="@+id/deduction_content"
android:layout_width="match_parent"
android:layout_height="80dp"
android:layout_marginLeft="8dp"
android:layout_marginTop="5dp"
android:layout_marginRight="8dp"
android:background="@drawable/black_radio_bg"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/deduction_logo"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/deduction_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_centerVertical="true"
android:layout_marginRight="5dp"
android:text="平台抵扣券"
android:textColor="@color/black"
android:textSize="12sp" />
<TextView
android:id="@+id/deduction_money"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toLeftOf="@+id/deduction_use"
android:text="¥5"
android:textColor="@color/black"
android:textStyle="bold"
android:textSize="12sp" />
<ImageView
android:id="@+id/deduction_use"
android:layout_width="30dp"
android:layout_height="30dp"
android:padding="8dp"
android:layout_centerVertical="true"
android:layout_alignParentRight="true"
android:layout_marginRight="2dp"
android:src="@drawable/aiqu_selected" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp">
<TextView
android:id="@+id/deduction_conditions"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="10dp"
android:text="满30元可用"
android:textColor="@color/gray_textcolor"
android:textSize="10sp" />
<TextView
android:id="@+id/deduction_server1"
android:layout_width="wrap_content"
android:layout_height="20dp"
android:layout_marginRight="10dp"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_gravity="center_vertical"
android:gravity="center"
android:text="网游区"
android:textColor="@color/gray"
android:textSize="10sp" />
</RelativeLayout>
<TextView
android:id="@+id/deduction_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginLeft="10sp"
android:text="有效期:2018-10-01至2019-03-01"
android:textColor="@color/red"
android:textSize="10sp" />
</LinearLayout>
</RelativeLayout>