5
5
android : layout_height =" fill_parent"
6
6
android : fillViewport =" true" >
7
7
8
- <RelativeLayout xmlns : android =" http://schemas.android.com/apk/res/android"
9
- xmlns : tools =" http://schemas.android.com/tools" android : layout_width =" match_parent"
10
- android : layout_height =" wrap_content" android : paddingLeft =" @dimen/activity_horizontal_margin"
11
- android : paddingRight =" @dimen/activity_horizontal_margin"
12
- android : paddingTop =" @dimen/activity_vertical_margin"
13
- android : paddingBottom =" @dimen/activity_vertical_margin"
14
- tools : context =" ndejaco.pollgeo.MakePollActivity"
15
- android : background =" #FFEDEDEA" >
16
-
17
-
18
- <Button
19
- android : layout_width =" match_parent"
20
- android : layout_height =" wrap_content"
21
- android : text =" @string/Submit_Button_Text"
22
- android : textSize =" 25sp"
23
- android : id =" @+id/submit"
24
- android : background =" @drawable/buttonshape"
25
- android : textColor =" #FFDE5842"
26
- android : layout_below =" @+id/add_button"
27
- android : layout_alignParentLeft =" true"
28
- android : layout_alignParentStart =" true"
29
- android : textStyle =" bold" />
30
-
31
- <TextView
32
- android : layout_width =" wrap_content"
33
- android : layout_height =" wrap_content"
34
- android : textAppearance =" ?android:attr/textAppearanceMedium"
35
- android : text =" What Is Your Question?"
36
- android : id =" @+id/titleText"
37
- android : layout_alignParentTop =" true"
38
- android : layout_alignParentLeft =" true"
39
- android : layout_alignParentStart =" true"
40
- android : textColor =" #000000" />
41
-
42
- <EditText
43
- android : layout_width =" wrap_content"
44
- android : layout_height =" wrap_content"
45
- android : inputType =" textMultiLine"
46
- android : ems =" 10"
47
- android : id =" @+id/userTitleText"
48
- android : layout_below =" @+id/titleText"
49
- android : layout_alignParentLeft =" true"
50
- android : layout_alignParentStart =" true"
51
- android : layout_alignRight =" @+id/submit"
52
- android : layout_alignEnd =" @+id/submit"
53
- android : maxLength =" 20" />
54
-
55
- <TextView
56
- android : layout_width =" wrap_content"
57
- android : layout_height =" wrap_content"
58
- android : textAppearance =" ?android:attr/textAppearanceMedium"
59
- android : text =" Option 1"
60
- android : id =" @+id/option1TextBox"
61
- android : layout_alignParentLeft =" true"
62
- android : layout_alignParentStart =" true"
63
- android : textColor =" #000000"
64
- android : layout_below =" @+id/userTitleText" />
65
-
66
- <EditText
67
- android : layout_width =" wrap_content"
68
- android : layout_height =" wrap_content"
69
- android : inputType =" textMultiLine"
70
- android : ems =" 10"
71
- android : id =" @+id/option1"
72
- android : layout_below =" @+id/option1TextBox"
73
- android : layout_alignParentLeft =" true"
74
- android : layout_alignParentStart =" true"
75
- android : layout_alignParentRight =" true"
76
- android : layout_alignParentEnd =" true"
77
- android : maxLength =" 20" />
78
-
79
- <TextView
80
- android : layout_width =" wrap_content"
81
- android : layout_height =" wrap_content"
82
- android : textAppearance =" ?android:attr/textAppearanceMedium"
83
- android : text =" Option 2"
84
- android : id =" @+id/option2TextBox"
85
- android : layout_below =" @+id/option1"
86
- android : layout_alignParentLeft =" true"
87
- android : layout_alignParentStart =" true"
88
- android : textColor =" #000000"
89
- />
90
-
91
- <EditText
92
- android : layout_width =" wrap_content"
93
- android : layout_height =" wrap_content"
94
- android : inputType =" textMultiLine"
95
- android : ems =" 10"
96
- android : id =" @+id/option2"
97
- android : layout_below =" @+id/option2TextBox"
98
- android : layout_alignParentLeft =" true"
99
- android : layout_alignParentStart =" true"
100
- android : layout_alignRight =" @+id/option1"
101
- android : layout_alignEnd =" @+id/option1"
102
- android : maxLength =" 20" />
103
-
104
- <TextView
105
- android : layout_width =" wrap_content"
106
- android : layout_height =" wrap_content"
107
- android : textAppearance =" ?android:attr/textAppearanceMedium"
108
- android : text =" Option 3"
109
- android : id =" @+id/option3TextBox"
110
- android : layout_below =" @+id/option2"
111
- android : layout_alignParentLeft =" true"
112
- android : layout_alignParentStart =" true"
113
- android : textColor =" #000000" />
114
-
115
- <EditText
116
- android : layout_width =" wrap_content"
117
- android : layout_height =" wrap_content"
118
- android : inputType =" textMultiLine"
119
- android : ems =" 10"
120
- android : id =" @+id/option3"
121
- android : layout_below =" @+id/option3TextBox"
122
- android : layout_alignParentLeft =" true"
123
- android : layout_alignParentStart =" true"
124
- android : layout_alignRight =" @+id/submit"
125
- android : layout_alignEnd =" @+id/submit"
126
- android : maxLength =" 20" />
127
-
128
- <TextView
129
- android : layout_width =" wrap_content"
130
- android : layout_height =" wrap_content"
131
- android : textAppearance =" ?android:attr/textAppearanceMedium"
132
- android : text =" Option 4"
133
- android : id =" @+id/option4TextBox"
134
- android : layout_below =" @+id/option3"
135
- android : layout_alignParentLeft =" true"
136
- android : layout_alignParentStart =" true"
137
- android : textColor =" #000000" />
138
-
139
- <EditText
140
- android : layout_width =" wrap_content"
141
- android : layout_height =" wrap_content"
142
- android : inputType =" textMultiLine"
143
- android : ems =" 10"
144
- android : id =" @+id/option4"
145
- android : layout_below =" @+id/option4TextBox"
146
- android : layout_alignParentRight =" true"
147
- android : layout_alignParentEnd =" true"
148
- android : layout_alignParentLeft =" true"
149
- android : layout_alignParentStart =" true"
150
- android : maxLength =" 20" />
151
-
152
- <Button
153
- android : id =" @+id/add_button"
154
- android : layout_width =" 60dp"
155
- android : layout_height =" 60dp"
156
- android : background =" @drawable/addoptionbutton"
157
- android : gravity =" center"
158
- android : stateListAnimator =" @null"
159
- android : text =" +"
160
- android : textSize =" 25sp"
161
- android : elevation =" 3dp"
162
- android : fontFamily =" sans-serif-light"
163
- android : textColor =" #FFDE5842"
164
- tools : ignore =" HardcodedText,UnusedAttribute"
165
- android : layout_below =" @+id/option4"
166
- android : layout_alignParentLeft =" true"
167
- android : layout_alignParentStart =" true"
168
- android : textStyle =" bold" />
169
-
170
- <Button
171
- android : layout_width =" wrap_content"
172
- android : layout_height =" wrap_content"
173
- android : text =" Upload Photo"
174
- android : id =" @+id/photo"
175
- android : layout_below =" @+id/submit"
176
- android : layout_alignParentLeft =" true"
177
- android : layout_alignParentStart =" true"
178
- android : layout_alignParentRight =" true"
179
- android : layout_alignParentEnd =" true" />
180
-
181
- </RelativeLayout >
8
+ <RelativeLayout xmlns : android =" http://schemas.android.com/apk/res/android"
9
+ xmlns : tools =" http://schemas.android.com/tools" android : layout_width =" match_parent"
10
+ android : layout_height =" wrap_content" android : paddingLeft =" @dimen/activity_horizontal_margin"
11
+ android : paddingRight =" @dimen/activity_horizontal_margin"
12
+ android : paddingTop =" @dimen/activity_vertical_margin"
13
+ android : paddingBottom =" @dimen/activity_vertical_margin"
14
+ tools : context =" ndejaco.pollgeo.MakePollActivity"
15
+ android : background =" #FFEDEDEA"
16
+ >
17
+
18
+
19
+ <Button
20
+ android : layout_width =" match_parent"
21
+ android : layout_height =" wrap_content"
22
+ android : text =" @string/Submit_Button_Text"
23
+ android : textSize =" 25sp"
24
+ android : id =" @+id/submit"
25
+ android : background =" @drawable/button_border"
26
+ android : textColor =" #FFFFFF"
27
+ android : textStyle =" bold"
28
+ android : layout_below =" @+id/photo"
29
+ android : layout_alignParentLeft =" true"
30
+ android : layout_alignParentStart =" true" />
31
+
32
+ <TextView
33
+ android : layout_width =" wrap_content"
34
+ android : layout_height =" wrap_content"
35
+ android : textAppearance =" ?android:attr/textAppearanceMedium"
36
+ android : text =" What Is Your Question? "
37
+ android : id =" @+id/titleText"
38
+ android : layout_alignParentTop =" true"
39
+ android : layout_alignParentLeft =" true"
40
+ android : layout_alignParentStart =" true"
41
+ android : textColor =" #000000"
42
+ android : layout_alignRight =" @+id/userTitleText"
43
+ android : layout_alignEnd =" @+id/userTitleText" />
44
+
45
+ <EditText
46
+ android : layout_width =" wrap_content"
47
+ android : layout_height =" wrap_content"
48
+ android : inputType =" textMultiLine"
49
+ android : ems =" 10"
50
+ android : id =" @+id/userTitleText"
51
+ android : layout_below =" @+id/titleText"
52
+ android : layout_alignParentLeft =" true"
53
+ android : layout_alignParentStart =" true"
54
+ android : layout_alignRight =" @+id/submit"
55
+ android : layout_alignEnd =" @+id/submit"
56
+ android : maxLength =" 20" />
57
+
58
+ <TextView
59
+ android : layout_width =" wrap_content"
60
+ android : layout_height =" wrap_content"
61
+ android : textAppearance =" ?android:attr/textAppearanceMedium"
62
+ android : text =" Option 1"
63
+ android : id =" @+id/option1TextBox"
64
+ android : textColor =" #000000"
65
+ android : layout_below =" @+id/limitWarning"
66
+ android : layout_alignParentLeft =" true"
67
+ android : layout_alignParentStart =" true" />
68
+
69
+ <EditText
70
+ android : layout_width =" wrap_content"
71
+ android : layout_height =" wrap_content"
72
+ android : inputType =" textMultiLine"
73
+ android : ems =" 10"
74
+ android : id =" @+id/option1"
75
+ android : maxLength =" 20"
76
+ android : layout_below =" @+id/option1TextBox"
77
+ android : layout_alignParentLeft =" true"
78
+ android : layout_alignParentStart =" true"
79
+ android : layout_alignRight =" @+id/option2"
80
+ android : layout_alignEnd =" @+id/option2" />
81
+
82
+ <TextView
83
+ android : layout_width =" wrap_content"
84
+ android : layout_height =" wrap_content"
85
+ android : textAppearance =" ?android:attr/textAppearanceMedium"
86
+ android : text =" Option 2"
87
+ android : id =" @+id/option2TextBox"
88
+ android : textColor =" #000000"
89
+ android : layout_below =" @+id/option1"
90
+ android : layout_alignParentLeft =" true"
91
+ android : layout_alignParentStart =" true" />
92
+
93
+ <EditText
94
+ android : layout_width =" wrap_content"
95
+ android : layout_height =" wrap_content"
96
+ android : inputType =" textMultiLine"
97
+ android : ems =" 10"
98
+ android : id =" @+id/option2"
99
+ android : maxLength =" 20"
100
+ android : layout_below =" @+id/option2TextBox"
101
+ android : layout_alignParentLeft =" true"
102
+ android : layout_alignParentStart =" true"
103
+ android : layout_alignRight =" @+id/userTitleText"
104
+ android : layout_alignEnd =" @+id/userTitleText" />
105
+
106
+ <TextView
107
+ android : layout_width =" wrap_content"
108
+ android : layout_height =" wrap_content"
109
+ android : textAppearance =" ?android:attr/textAppearanceMedium"
110
+ android : text =" Option 3"
111
+ android : id =" @+id/option3TextBox"
112
+ android : paddingTop =" 5dp"
113
+ android : textColor =" #000000"
114
+ android : layout_alignLeft =" @+id/option4TextBox"
115
+ android : layout_alignStart =" @+id/option4TextBox"
116
+ android : layout_below =" @+id/option2" />
117
+
118
+ <EditText
119
+ android : layout_width =" wrap_content"
120
+ android : layout_height =" wrap_content"
121
+ android : inputType =" textMultiLine"
122
+ android : ems =" 10"
123
+ android : id =" @+id/option3"
124
+ android : maxLength =" 20"
125
+ android : layout_below =" @+id/option3TextBox"
126
+ android : layout_alignParentRight =" true"
127
+ android : layout_alignParentEnd =" true"
128
+ android : layout_alignParentLeft =" true"
129
+ android : layout_alignParentStart =" true" />
130
+
131
+ <TextView
132
+ android : layout_width =" wrap_content"
133
+ android : layout_height =" wrap_content"
134
+ android : textAppearance =" ?android:attr/textAppearanceMedium"
135
+ android : text =" Option 4"
136
+ android : id =" @+id/option4TextBox"
137
+ android : paddingTop =" 5dp"
138
+ android : textColor =" #000000"
139
+ android : layout_below =" @+id/option3"
140
+ android : layout_alignParentLeft =" true"
141
+ android : layout_alignParentStart =" true" />
142
+
143
+ <EditText
144
+ android : layout_width =" wrap_content"
145
+ android : layout_height =" wrap_content"
146
+ android : inputType =" textMultiLine"
147
+ android : ems =" 10"
148
+ android : id =" @+id/option4"
149
+ android : maxLength =" 20"
150
+ android : layout_below =" @+id/option4TextBox"
151
+ android : layout_alignParentLeft =" true"
152
+ android : layout_alignParentStart =" true"
153
+ android : layout_alignRight =" @+id/option2"
154
+ android : layout_alignEnd =" @+id/option2" />
155
+
156
+ <Button
157
+ android : layout_width =" wrap_content"
158
+ android : layout_height =" wrap_content"
159
+ android : text =" Upload Photo"
160
+ android : id =" @+id/photo"
161
+ android : layout_below =" @+id/option4"
162
+ android : layout_alignParentLeft =" true"
163
+ android : layout_alignParentStart =" true"
164
+ android : layout_alignRight =" @+id/option3"
165
+ android : layout_alignEnd =" @+id/option3" />
166
+
167
+ <TextView
168
+ android : layout_width =" wrap_content"
169
+ android : layout_height =" wrap_content"
170
+ android : textAppearance =" ?android:attr/textAppearanceSmall"
171
+ android : text =" Options have 20 character limit, min 2 options"
172
+ android : gravity =" center"
173
+ android : id =" @+id/limitWarning"
174
+ android : layout_below =" @+id/userTitleText"
175
+ android : layout_alignParentLeft =" true"
176
+ android : layout_alignParentStart =" true"
177
+ android : layout_alignRight =" @+id/userTitleText"
178
+ android : layout_alignEnd =" @+id/userTitleText" />
179
+
180
+ </RelativeLayout >
182
181
</ScrollView >
0 commit comments