SHOW:
|
|
- or go back to the newest paste.
1 | <?xml version="1.0" encoding="utf-8"?> | |
2 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
3 | android:layout_width="match_parent" | |
4 | android:layout_height="match_parent" | |
5 | - | > |
5 | + | android:orientation="vertical" > |
6 | ||
7 | <ScrollView | |
8 | android:id="@+id/scroll_view" | |
9 | - | android:layout_height="match_parent" |
9 | + | |
10 | - | android:layout_above="@+id/bottom_layout" |
10 | + | android:layout_height="match_parent" > |
11 | - | android:layout_alignParentTop="true" > |
11 | + | |
12 | <RelativeLayout | |
13 | android:layout_width="match_parent" | |
14 | android:layout_height="wrap_content" | |
15 | android:orientation="vertical" > | |
16 | ||
17 | <TextView | |
18 | android:id="@+id/textView1" | |
19 | android:layout_width="wrap_content" | |
20 | android:layout_height="wrap_content" | |
21 | android:layout_alignParentLeft="true" | |
22 | android:layout_alignParentTop="true" | |
23 | android:text="@string/feature_wall" | |
24 | - | android:text="feature_wall" |
24 | + | |
25 | android:textColor="@android:color/black" /> | |
26 | ||
27 | <RelativeLayout | |
28 | android:id="@+id/feature_wall_layout" | |
29 | android:layout_width="match_parent" | |
30 | android:layout_height="wrap_content" | |
31 | android:layout_below="@+id/textView1" | |
32 | android:visibility="gone" > | |
33 | ||
34 | <TextView | |
35 | android:id="@+id/textView2" | |
36 | android:layout_width="wrap_content" | |
37 | android:layout_height="wrap_content" | |
38 | android:layout_alignParentLeft="true" | |
39 | android:layout_marginLeft="10dp" | |
40 | android:layout_marginTop="5dp" | |
41 | android:text="Paint Type" | |
42 | android:textColor="@android:color/black" /> | |
43 | ||
44 | <Spinner | |
45 | android:id="@+id/spinner1" | |
46 | android:layout_width="150dp" | |
47 | android:layout_height="40dp" | |
48 | android:layout_alignParentRight="true" | |
49 | android:layout_alignTop="@+id/textView2" | |
50 | android:layout_marginLeft="57dp" | |
51 | android:background="#ff33b5e5" | |
52 | - | android:background="#ff33b5e5" /> |
52 | + | android:entries="@array/paint_type" /> |
53 | ||
54 | <TextView | |
55 | android:id="@+id/textView3" | |
56 | android:layout_width="wrap_content" | |
57 | android:layout_height="wrap_content" | |
58 | android:layout_alignLeft="@+id/textView2" | |
59 | android:layout_below="@+id/spinner1" | |
60 | android:layout_marginTop="10dp" | |
61 | android:text="Dimensions" | |
62 | android:textColor="@android:color/black" /> | |
63 | ||
64 | <EditText | |
65 | android:id="@+id/editText1" | |
66 | android:layout_width="190dp" | |
67 | android:layout_height="40dp" | |
68 | android:layout_alignParentRight="true" | |
69 | android:layout_alignTop="@+id/textView3" | |
70 | android:background="@android:drawable/editbox_background" | |
71 | android:ems="10" | |
72 | android:gravity="left|center_vertical" | |
73 | android:hint="length" | |
74 | android:inputType="numberSigned" | |
75 | android:textColor="@android:color/black" > | |
76 | ||
77 | <requestFocus /> | |
78 | </EditText> | |
79 | ||
80 | <EditText | |
81 | android:id="@+id/editText2" | |
82 | android:layout_width="190dp" | |
83 | android:layout_height="40dp" | |
84 | android:layout_alignLeft="@+id/editText1" | |
85 | android:layout_below="@+id/editText1" | |
86 | android:layout_marginTop="10dp" | |
87 | android:background="@android:drawable/editbox_background" | |
88 | android:ems="10" | |
89 | android:gravity="left|center_vertical" | |
90 | android:hint="breadth" | |
91 | android:inputType="numberSigned" | |
92 | android:textColor="@android:color/black" /> | |
93 | ||
94 | <EditText | |
95 | android:id="@+id/editText3" | |
96 | android:layout_width="190dp" | |
97 | android:layout_height="40dp" | |
98 | android:layout_alignLeft="@+id/editText2" | |
99 | android:layout_below="@+id/editText2" | |
100 | android:layout_marginTop="10dp" | |
101 | android:background="@android:drawable/editbox_background" | |
102 | android:ems="10" | |
103 | android:gravity="left|center_vertical" | |
104 | android:hint="height" | |
105 | android:inputType="numberSigned" | |
106 | android:textColor="@android:color/black" /> | |
107 | ||
108 | <TextView | |
109 | android:id="@+id/textView4" | |
110 | android:layout_width="wrap_content" | |
111 | android:layout_height="wrap_content" | |
112 | android:layout_alignLeft="@+id/textView3" | |
113 | android:layout_below="@+id/editText3" | |
114 | android:layout_marginTop="10dp" | |
115 | android:text="Empty Spaces\n(door/window/etc)" | |
116 | android:textColor="@android:color/black" /> | |
117 | ||
118 | <EditText | |
119 | android:id="@+id/editText4" | |
120 | android:layout_width="190dp" | |
121 | android:layout_height="40dp" | |
122 | android:layout_alignLeft="@+id/editText3" | |
123 | android:layout_alignTop="@+id/textView4" | |
124 | android:background="@android:drawable/editbox_background" | |
125 | android:ems="10" | |
126 | android:gravity="left|center_vertical" | |
127 | android:hint="length" | |
128 | android:inputType="numberSigned" | |
129 | android:textColor="@android:color/black" /> | |
130 | ||
131 | <EditText | |
132 | android:id="@+id/editText5" | |
133 | android:layout_width="190dp" | |
134 | android:layout_height="40dp" | |
135 | android:layout_alignLeft="@+id/editText4" | |
136 | android:layout_below="@+id/editText4" | |
137 | android:layout_marginTop="10dp" | |
138 | android:background="@android:drawable/editbox_background" | |
139 | android:ems="10" | |
140 | android:gravity="left|center_vertical" | |
141 | android:hint="height" | |
142 | android:inputType="numberSigned" | |
143 | android:textColor="@android:color/black" /> | |
144 | </RelativeLayout> | |
145 | ||
146 | <TextView | |
147 | android:id="@+id/textView5" | |
148 | android:layout_width="wrap_content" | |
149 | android:layout_height="wrap_content" | |
150 | android:layout_alignParentLeft="true" | |
151 | android:layout_below="@+id/feature_wall_layout" | |
152 | - | android:text="Non-Featured wall" |
152 | + | android:text="Non-Featured Wall" |
153 | android:textAppearance="?android:attr/textAppearanceLarge" | |
154 | android:textColor="@android:color/black" /> | |
155 | ||
156 | <RelativeLayout | |
157 | android:id="@+id/non_feature_wall_layout" | |
158 | android:layout_width="match_parent" | |
159 | android:layout_height="wrap_content" | |
160 | android:layout_below="@+id/textView5" | |
161 | android:visibility="gone" > | |
162 | ||
163 | <TextView | |
164 | android:id="@+id/textView6" | |
165 | android:layout_width="wrap_content" | |
166 | android:layout_height="wrap_content" | |
167 | android:layout_alignParentLeft="true" | |
168 | android:layout_alignParentTop="true" | |
169 | android:layout_marginTop="5dp" | |
170 | android:text="Paint Type" | |
171 | android:textColor="@android:color/black" /> | |
172 | ||
173 | <Spinner | |
174 | android:id="@+id/spinner2" | |
175 | android:layout_width="150dp" | |
176 | android:layout_height="40dp" | |
177 | android:layout_alignParentRight="true" | |
178 | android:layout_alignTop="@+id/textView6" | |
179 | - | android:background="#ff33b5e5" /> |
179 | + | android:background="#ff33b5e5" |
180 | android:entries="@array/paint_type" /> | |
181 | ||
182 | <EditText | |
183 | android:id="@+id/editText6" | |
184 | android:layout_width="190dp" | |
185 | android:layout_height="40dp" | |
186 | android:layout_alignParentRight="true" | |
187 | android:layout_below="@+id/spinner2" | |
188 | android:background="@android:drawable/editbox_background" | |
189 | android:ems="10" | |
190 | android:gravity="left|center_vertical" | |
191 | android:hint="length" | |
192 | android:inputType="numberSigned" | |
193 | android:textColor="@android:color/black" /> | |
194 | ||
195 | <EditText | |
196 | android:id="@+id/editText7" | |
197 | android:layout_width="190dp" | |
198 | android:layout_height="40dp" | |
199 | android:layout_alignLeft="@+id/editText6" | |
200 | android:layout_below="@+id/editText6" | |
201 | android:layout_marginTop="10dp" | |
202 | android:background="@android:drawable/editbox_background" | |
203 | android:ems="10" | |
204 | android:gravity="left|center_vertical" | |
205 | android:hint="breadth" | |
206 | android:inputType="numberSigned" | |
207 | android:textColor="@android:color/black" /> | |
208 | ||
209 | <EditText | |
210 | android:id="@+id/editText8" | |
211 | android:layout_width="190dp" | |
212 | android:layout_height="40dp" | |
213 | android:layout_alignLeft="@+id/editText7" | |
214 | android:layout_below="@+id/editText7" | |
215 | android:layout_marginTop="10dp" | |
216 | android:background="@android:drawable/editbox_background" | |
217 | android:ems="10" | |
218 | android:gravity="center" | |
219 | android:hint="please enter height" | |
220 | android:inputType="numberSigned" | |
221 | android:textColor="@android:color/black" /> | |
222 | ||
223 | <TextView | |
224 | android:id="@+id/textView9" | |
225 | android:layout_width="wrap_content" | |
226 | android:layout_height="wrap_content" | |
227 | android:layout_alignLeft="@+id/textView7" | |
228 | android:layout_below="@+id/editText7" | |
229 | android:layout_marginTop="10dp" | |
230 | android:text="Empty Spaces\n(door/window/etc)" | |
231 | android:textColor="@android:color/black" /> | |
232 | ||
233 | <EditText | |
234 | android:id="@+id/editText10" | |
235 | android:layout_width="190dp" | |
236 | android:layout_height="40dp" | |
237 | android:layout_alignLeft="@+id/editText7" | |
238 | android:layout_alignTop="@+id/textView9" | |
239 | android:background="@android:drawable/editbox_background" | |
240 | android:ems="10" | |
241 | android:gravity="left|center_vertical" | |
242 | android:hint="length" | |
243 | android:inputType="numberSigned" | |
244 | android:textColor="@android:color/black" /> | |
245 | ||
246 | <EditText | |
247 | android:id="@+id/editText11" | |
248 | android:layout_width="190dp" | |
249 | android:layout_height="40dp" | |
250 | android:layout_alignLeft="@+id/editText10" | |
251 | android:layout_below="@+id/editText10" | |
252 | android:layout_marginTop="10dp" | |
253 | android:background="@android:drawable/editbox_background" | |
254 | android:ems="10" | |
255 | android:gravity="left|center_vertical" | |
256 | android:hint="height" | |
257 | android:inputType="numberSigned" | |
258 | android:textColor="@android:color/black" /> | |
259 | ||
260 | <TextView | |
261 | android:id="@+id/textView7" | |
262 | android:layout_width="wrap_content" | |
263 | android:layout_height="wrap_content" | |
264 | android:layout_alignBaseline="@+id/editText6" | |
265 | android:layout_alignBottom="@+id/editText6" | |
266 | android:layout_alignLeft="@+id/textView6" | |
267 | android:text="Dimensions" | |
268 | android:textColor="@android:color/black" /> | |
269 | </RelativeLayout> | |
270 | </RelativeLayout> | |
271 | </ScrollView> | |
272 | ||
273 | <RelativeLayout | |
274 | android:id="@+id/bottom_layout" | |
275 | android:layout_width="match_parent" | |
276 | android:layout_height="wrap_content" | |
277 | - | android:gravity="bottom" |
277 | + | |
278 | android:layout_below="@+id/scroll_view" | |
279 | - | android:visibility="visible" > |
279 | + | |
280 | android:visibility="invisible" > | |
281 | ||
282 | <Button | |
283 | android:id="@+id/button1" | |
284 | android:layout_width="100dp" | |
285 | android:layout_height="wrap_content" | |
286 | android:layout_alignParentBottom="true" | |
287 | android:layout_alignParentRight="true" | |
288 | - | android:text="Next Step" /> |
288 | + | |
289 | android:background="@drawable/round_shape" | |
290 | android:text="@string/next_step" /> | |
291 | ||
292 | <Button | |
293 | android:id="@+id/button2" | |
294 | android:layout_width="100dp" | |
295 | android:layout_height="wrap_content" | |
296 | android:layout_alignParentBottom="true" | |
297 | android:layout_alignParentLeft="true" | |
298 | android:layout_marginTop="21dp" | |
299 | android:background="@drawable/round_shape" | |
300 | android:text="Back" /> | |
301 | </RelativeLayout> | |
302 | ||
303 | </RelativeLayout> |