fragment_contentvote.xml
6.67 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<?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="match_parent"
android:background="@color/votebakground">
<TextView
android:id="@+id/contentvote_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/content_margin"
android:layout_marginTop="@dimen/content_margin"
android:text="@string/sunvote_no_paper"
android:textSize="@dimen/big_text_p4" />
<TextView
android:id="@+id/contentvote_tvmodify"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginRight="@dimen/content_margin"
android:layout_marginTop="@dimen/content_margin"
android:textSize="@dimen/big_text_p4" />
<ImageButton
android:id="@+id/contentvote_bigger"
android:layout_width="@dimen/content_margin"
android:layout_height="@dimen/content_margin"
android:layout_alignParentRight="true"
android:layout_marginRight="@dimen/content_margin"
android:layout_marginTop="@dimen/content_margin"
android:background="@drawable/bigger" />
<ImageButton
android:id="@+id/contentvote_smaller"
android:layout_width="@dimen/content_margin"
android:layout_height="@dimen/content_margin"
android:layout_marginRight="@dimen/content_margin"
android:layout_marginTop="@dimen/content_margin"
android:layout_toLeftOf="@id/contentvote_bigger"
android:background="@drawable/smaller" />
<ScrollView
android:id="@+id/contentvote_scview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_marginBottom="@dimen/content_margin"
android:layout_marginLeft="@dimen/content_margin"
android:layout_marginRight="@dimen/content_margin"
android:layout_marginTop="@dimen/content_margin"
android:layout_below="@id/contentvote_title"
android:background="@color/white"
android:fillViewport="false"
android:scrollbars="none">
<WebView
android:id="@+id/contentvote_content"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/white" />
</ScrollView>
<TextView
android:id="@+id/contentvote_tv_result"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@id/contentvote_scview"
android:layout_centerInParent="true"
android:layout_marginTop="@dimen/content_margin"
android:background="@drawable/voted_empty"
android:gravity="center"
android:rotation="-20"
android:text=""
android:textColor="#ddff9933"
android:textSize="@dimen/big_text_p2"
android:textStyle="bold"
android:visibility="visible" />
<RelativeLayout
android:id="@+id/contentvote_pannal_vote"
android:layout_width="match_parent"
android:layout_height="@dimen/linear_heigh"
android:layout_alignParentBottom="true"
android:alpha="0.9"
android:background="@drawable/black_alpha">
<Button
android:id="@+id/contentvote_btnB"
android:layout_width="@dimen/button_width"
android:layout_height="@dimen/button_heigh"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:background="@drawable/oppos_selector"
android:gravity="center"
android:text=""
android:textColor="@color/white"
android:textSize="@dimen/big_text_p4"
android:textStyle="bold" />
<Button
android:id="@+id/contentvote_btnA"
android:layout_width="@dimen/button_width"
android:layout_height="@dimen/button_heigh"
android:layout_centerVertical="true"
android:layout_marginRight="@dimen/content_margin"
android:layout_toLeftOf="@id/contentvote_btnB"
android:background="@drawable/agree_selector"
android:text="赞成"
android:textColor="@color/white"
android:textSize="@dimen/big_text_p4"
android:textStyle="bold" />
<Button
android:id="@+id/contentvote_btnC"
android:layout_width="@dimen/button_width"
android:layout_height="@dimen/button_heigh"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/content_margin"
android:layout_toRightOf="@id/contentvote_btnB"
android:background="@drawable/abstain_selector"
android:text=""
android:textColor="@color/white"
android:textSize="@dimen/big_text_p4"
android:textStyle="bold" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/contentvote_pannal_tips"
android:layout_width="match_parent"
android:layout_height="@dimen/linear_heigh"
android:layout_alignParentBottom="true"
android:alpha="0.9"
android:background="@drawable/black_alpha"
android:visibility="invisible">
<TextView
android:id="@+id/contentvote_tv_tips"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:layout_marginTop="@dimen/content_margin"
android:text="@string/submiting"
android:textColor="@color/white"
android:textSize="@dimen/big_text_p4" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/contentvote_pannal_modify"
android:layout_width="match_parent"
android:layout_height="@dimen/linear_heigh"
android:layout_alignParentBottom="true"
android:alpha="0.9"
android:background="@drawable/black_alpha"
android:visibility="invisible">
<Button
android:id="@+id/contentvote_btn_modify"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:background="@drawable/signin_selector"
android:text="@string/modify"
android:textColor="@color/white"
android:textSize="@dimen/big_text_p4"
android:textStyle="bold" />
</RelativeLayout>
</RelativeLayout>