Blame view

C5/app/src/main/res/layout/fragment_singlevote.xml 8.72 KB
fac86401   孙向锦   初始化C5 Vote
1
2
3
4
5
6
  <?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">
  
4c3de86c   孙向锦   UI改版第一版
7
8
9
10
11
      <LinearLayout
          android:id="@+id/singlevote_title_layout"
          android:layout_width="match_parent"
          android:layout_height="80dp"
          android:background="#AC1007">
fac86401   孙向锦   初始化C5 Vote
12
  
4c3de86c   孙向锦   UI改版第一版
13
          <TextView
fac86401   孙向锦   初始化C5 Vote
14
              android:layout_width="wrap_content"
4c3de86c   孙向锦   UI改版第一版
15
16
17
18
19
20
21
22
              android:layout_height="match_parent"
              android:layout_marginLeft="25dp"
              android:gravity="center_vertical"
              android:text="议案表决"
              android:textColor="@color/white"
              android:textSize="@dimen/big_text_p3"
              android:textStyle="bold" />
      </LinearLayout>
fac86401   孙向锦   初始化C5 Vote
23
24
25
26
27
  
      <Button
          android:id="@+id/singlevote_btnB"
          android:layout_width="200dp"
          android:layout_height="60dp"
4c3de86c   孙向锦   UI改版第一版
28
          android:layout_alignParentBottom="true"
fac86401   孙向锦   初始化C5 Vote
29
30
31
32
33
34
35
36
37
38
39
40
          android:layout_centerHorizontal="true"
          android:layout_marginBottom="20dp"
          android:background="@drawable/oppos_selector"
          android:text="@string/oppose"
          android:textColor="@color/white"
          android:textSize="@dimen/big_text_p4"
          android:textStyle="bold" />
  
      <Button
          android:id="@+id/singlevote_btnA"
          android:layout_width="200dp"
          android:layout_height="60dp"
4c3de86c   孙向锦   UI改版第一版
41
42
          android:layout_alignParentBottom="true"
          android:layout_centerHorizontal="true"
fac86401   孙向锦   初始化C5 Vote
43
44
45
46
47
48
49
50
51
52
53
54
55
          android:layout_marginBottom="20dp"
          android:layout_marginRight="40dp"
          android:layout_toLeftOf="@id/singlevote_btnB"
          android:background="@drawable/agree_selector"
          android:text="@string/agree"
          android:textColor="@color/white"
          android:textSize="@dimen/big_text_p4"
          android:textStyle="bold" />
  
      <Button
          android:id="@+id/singlevote_btnC"
          android:layout_width="200dp"
          android:layout_height="60dp"
4c3de86c   孙向锦   UI改版第一版
56
57
          android:layout_alignParentBottom="true"
          android:layout_centerHorizontal="true"
fac86401   孙向锦   初始化C5 Vote
58
59
60
61
62
63
64
65
66
67
68
69
70
          android:layout_marginBottom="20dp"
          android:layout_marginLeft="40dp"
          android:layout_toRightOf="@id/singlevote_btnB"
          android:background="@drawable/abstain_selector"
          android:text="@string/abstant"
          android:textColor="@color/white"
          android:textSize="@dimen/big_text_p4"
          android:textStyle="bold" />
  
      <Button
          android:id="@+id/singlevote_btn_modify"
          android:layout_width="200dp"
          android:layout_height="60dp"
4c3de86c   孙向锦   UI改版第一版
71
          android:layout_alignParentBottom="true"
fac86401   孙向锦   初始化C5 Vote
72
73
74
75
76
77
78
79
80
81
          android:layout_centerHorizontal="true"
          android:layout_marginBottom="20dp"
          android:background="@drawable/modify_selector"
          android:text="@string/modify"
          android:textColor="@color/modifytext"
          android:textSize="@dimen/big_text_p4"
          android:textStyle="bold"
          android:visibility="invisible" />
  
      <RelativeLayout
4c3de86c   孙向锦   UI改版第一版
82
          android:id="@+id/singlevote_btn_layout1"
fac86401   孙向锦   初始化C5 Vote
83
84
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
4c3de86c   孙向锦   UI改版第一版
85
86
87
          android:layout_alignParentBottom="true"
          android:layout_centerHorizontal="true"
          android:layout_marginBottom="20dp"
fac86401   孙向锦   初始化C5 Vote
88
89
          android:layout_marginLeft="@dimen/content_margin"
          android:layout_marginRight="@dimen/content_margin"
4c3de86c   孙向锦   UI改版第一版
90
91
92
93
          android:gravity="center_horizontal">
  
      </RelativeLayout>
  
fac86401   孙向锦   初始化C5 Vote
94
95
  
      <RelativeLayout
4c3de86c   孙向锦   UI改版第一版
96
          android:id="@+id/singlevote_content_layout"
fac86401   孙向锦   初始化C5 Vote
97
          android:layout_width="match_parent"
4c3de86c   孙向锦   UI改版第一版
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
          android:layout_height="match_parent"
          android:layout_above="@id/singlevote_btnB"
          android:layout_below="@id/singlevote_title_layout"
          android:layout_margin="20dp"
          android:background="@color/white">
  
          <ScrollView
              android:id="@+id/singlevote_content_scview"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_centerVertical="true"
              android:layout_marginLeft="20dp"
              android:layout_marginRight="20dp"
              android:layout_marginTop="20dp"
              android:fadeScrollbars="false"
              android:fillViewport="false"
              android:scrollbarAlwaysDrawVerticalTrack="true"
              android:scrollbars="vertical">
  
              <TextView
                  android:id="@+id/singlevote_content"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_centerInParent="true"
                  android:background="@color/white"
                  android:gravity="center"
                  android:scrollbars="vertical"
                  android:text="@string/please_vote"
                  android:textColor="@color/black"
                  android:textSize="@dimen/big_text_p3" />
          </ScrollView>
fac86401   孙向锦   初始化C5 Vote
129
  
4c3de86c   孙向锦   UI改版第一版
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
          <ImageView
              android:id="@+id/singlevote_img_detail"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentRight="true"
              android:layout_centerVertical="true"
              android:layout_marginRight="10dp"
              android:layout_marginTop="20dp"
              android:src="@drawable/detail_icon" />
  
          <RelativeLayout
              android:layout_width="match_parent"
              android:layout_height="50dp"
              android:layout_alignParentBottom="true"
              android:background="#FFF134">
  
              <TextView
                  android:id="@+id/singlevote_tv_tips"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_centerHorizontal="true"
                  android:gravity="center"
                  android:text="@string/please_press_key"
                  android:textColor="@color/red"
                  android:textSize="@dimen/big_text_p4"
                  android:textStyle="bold" />
          </RelativeLayout>
fac86401   孙向锦   初始化C5 Vote
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
      </RelativeLayout>
  
      <TextView
          android:id="@+id/singlevote_tv_result"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignRight="@id/singlevote_content_layout"
          android:layout_alignTop="@id/singlevote_content_layout"
          android:layout_marginRight="@dimen/button_to_content"
          android:layout_marginTop="@dimen/content_margin"
          android:alpha="0.9"
          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/singlevote_confirm_panel"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:background="@color/black"
          android:visibility="gone">
  
          <TextView
              android:id="@+id/singlevote_confirm_textview"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_centerHorizontal="true"
              android:layout_marginLeft="@dimen/content_margin"
              android:layout_marginRight="@dimen/content_margin"
              android:layout_marginTop="@dimen/button_to_content"
              android:text="@string/cant_modify_confirm"
              android:textColor="@color/white"
              android:textSize="@dimen/big_text_p4" />
  
          <Button
              android:id="@+id/singlevote_btn_confirm_cancel"
              android:layout_width="@dimen/button_width"
              android:layout_height="@dimen/button_heigh"
              android:layout_alignParentLeft="true"
              android:layout_below="@id/singlevote_confirm_textview"
4c3de86c   孙向锦   UI改版第一版
202
              android:layout_marginLeft="120dp"
fac86401   孙向锦   初始化C5 Vote
203
204
205
206
207
208
209
210
211
212
213
214
215
              android:layout_marginTop="@dimen/button_to_content"
              android:background="@drawable/btn_signin_d"
              android:text="@string/cancel"
              android:textColor="@color/white"
              android:textSize="@dimen/big_text_p5"
              android:textStyle="bold" />
  
          <Button
              android:id="@+id/singlevote_btn_confirm_ok"
              android:layout_width="@dimen/button_width"
              android:layout_height="@dimen/button_heigh"
              android:layout_alignParentRight="true"
              android:layout_below="@id/singlevote_confirm_textview"
4c3de86c   孙向锦   UI改版第一版
216
              android:layout_marginRight="120dp"
fac86401   孙向锦   初始化C5 Vote
217
218
219
220
221
222
223
224
225
              android:layout_marginTop="@dimen/button_to_content"
              android:background="@drawable/btn_agree"
              android:text="@string/ok"
              android:textColor="@color/white"
              android:textSize="@dimen/big_text_p5"
              android:textStyle="bold" />
      </RelativeLayout>
  
  </RelativeLayout>