-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfootwear_fragment_layout.xml
495 lines (428 loc) · 18.8 KB
/
footwear_fragment_layout.xml
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
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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:orientation="vertical"
android:background="@color/white"
android:layout_width="match_parent"
android:layout_height="match_parent">
<!--Product Image name field goes here-->
<TextView
android:layout_margin="10dp"
android:textColor="@color/colorAccent"
android:text="Product Images"
android:textSize="18sp"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<!--Product pictures goes here-->
<android.support.v7.widget.CardView
app:cardElevation="5dp"
app:cardBackgroundColor="#ffffff"
android:id="@+id/order_or_slider_container"
android:layout_width="match_parent"
android:layout_marginBottom="5dp"
android:layout_height="wrap_content">
<!--Image slider container goes here-->
<FrameLayout
android:layout_width="match_parent"
android:layout_height="@dimen/shop_image_slider_height">
<!--Sliding image goes here-->
<android.support.v4.view.ViewPager
android:id="@+id/view_pager"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<!--Add more shop images, icon goes here-->
<ImageView
android:padding="5dp"
android:background="@drawable/icon_background_on_shop_image"
android:id="@+id/add_more_shop_images"
android:clickable="true"
android:layout_margin="10dp"
android:layout_gravity="end|bottom"
android:src="@drawable/ic_add_circle_24dp"
android:layout_width="29dp"
android:layout_height="29dp" />
<!--Dots goes here-->
<LinearLayout
android:layout_gravity="bottom|center_horizontal"
android:orientation="horizontal"
android:layout_margin="8dp"
android:id="@+id/dots_container"
android:gravity="center_horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<!--Camera icon goes here-->
<ImageView
android:padding="5dp"
android:background="@drawable/icon_background_on_shop_image"
android:clickable="true"
android:layout_margin="10dp"
android:layout_gravity="end"
android:src="@drawable/ic_photo_camera_24dp"
android:id="@+id/shop_image_camera_icon"
android:layout_width="29dp"
android:layout_height="29dp" />
<!--Delete icon to delete shop image-->
<ImageView
android:padding="5dp"
android:background="@drawable/icon_background_on_shop_image"
android:clickable="true"
android:id="@+id/shop_image_delete_icon"
android:layout_margin="10dp"
android:layout_gravity="start"
android:src="@drawable/ic_delete_24dp"
android:layout_width="29dp"
android:layout_height="29dp" />
</FrameLayout>
</android.support.v7.widget.CardView>
<!--Product information fields goes here-->
<TextView
android:layout_margin="10dp"
android:textColor="@color/colorAccent"
android:text="Product Information"
android:textSize="18sp"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<!--Product name field container goes here-->
<LinearLayout
android:layout_marginLeft="10dp"
android:layout_marginStart="10dp"
android:layout_marginRight="10dp"
android:layout_marginEnd="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!--Product name heading goes here-->
<TextView
android:text="Name "
android:textColor="@android:color/black"
android:textSize="16sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<!--Product name edit text goes here-->
<EditText
android:id="@+id/product_name"
android:inputType="text"
android:textSize="16sp"
android:maxLength="30"
android:hint="Product name"
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content" />
</LinearLayout>
<!--Product's company name field container goes here-->
<LinearLayout
android:layout_marginLeft="10dp"
android:layout_marginStart="10dp"
android:layout_marginRight="10dp"
android:layout_marginEnd="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!--Product company name heading goes here-->
<TextView
android:text="Company "
android:textColor="@android:color/black"
android:textSize="16sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<!--Product company name edit text goes here-->
<EditText
android:id="@+id/company_name"
android:inputType="text"
android:textSize="16sp"
android:maxLength="20"
android:hint="Company name"
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content" />
</LinearLayout>
<!--Product type field container goes here-->
<LinearLayout
android:layout_marginLeft="10dp"
android:layout_marginStart="10dp"
android:layout_marginRight="10dp"
android:layout_marginEnd="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!--Product type heading goes here-->
<TextView
android:text="Type "
android:textColor="@android:color/black"
android:textSize="16sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<!--Product type edit text goes here-->
<EditText
android:id="@+id/product_type"
android:inputType="text"
android:textSize="16sp"
android:maxLength="20"
android:hint="Footwear type"
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content" />
</LinearLayout>
<!--Product suitable for (men/women/boy/girl/kid) field container goes here-->
<RadioGroup
android:id="@+id/suitable_for_radio_group"
android:layout_marginLeft="10dp"
android:layout_marginStart="10dp"
android:layout_marginRight="10dp"
android:layout_marginEnd="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!--Men radio button goes here-->
<RadioButton
android:text="Men"
android:textSize="16sp"
android:id="@+id/men_radio_button"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<!--Women radio button goes here-->
<RadioButton
android:text="Women"
android:textSize="16sp"
android:id="@+id/women_radio_button"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<!--Boys radio button goes here-->
<RadioButton
android:text="Boys"
android:textSize="16sp"
android:id="@+id/boys_radio_button"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<!--Girls radio buton goes here-->
<RadioButton
android:text="Girls"
android:textSize="16sp"
android:id="@+id/girls_radio_button"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<!--Kids radio button goes here-->
<RadioButton
android:text="Kids"
android:textSize="16sp"
android:id="@+id/kids_radio_button"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</RadioGroup>
<!--Colour of product field container goes here-->
<LinearLayout
android:layout_marginLeft="10dp"
android:layout_marginStart="10dp"
android:layout_marginRight="10dp"
android:layout_marginEnd="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!--Product colour heading goes here-->
<TextView
android:text="Colour "
android:textColor="@android:color/black"
android:textSize="16sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<!--Product colour edit text goes here-->
<AutoCompleteTextView
android:id="@+id/product_colour"
android:inputType="text"
android:textSize="16sp"
android:maxLength="20"
android:hint="Footwear colour"
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content" />
</LinearLayout>
<!--Material of product field container goes here-->
<LinearLayout
android:layout_marginLeft="10dp"
android:layout_marginStart="10dp"
android:layout_marginRight="10dp"
android:layout_marginEnd="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!--Product material heading goes here-->
<TextView
android:text="Material "
android:textColor="@android:color/black"
android:textSize="16sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<!--Product material edit text goes here-->
<AutoCompleteTextView
android:id="@+id/product_fabric"
android:inputType="text"
android:textSize="16sp"
android:maxLength="20"
android:hint="Material of footwear"
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content" />
</LinearLayout>
<!--Product size field container goes here-->
<LinearLayout
android:layout_marginLeft="10dp"
android:layout_marginStart="10dp"
android:layout_marginRight="10dp"
android:layout_marginEnd="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!--Product size heading goes here-->
<TextView
android:text="Size "
android:textColor="@android:color/black"
android:textSize="16sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<!--Product size edit text goes here-->
<EditText
android:id="@+id/product_size"
android:inputType="text"
android:textSize="16sp"
android:maxLength="4"
android:hint="Size of footwear"
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content" />
</LinearLayout>
<!--Product description heading goes here-->
<TextView
android:layout_margin="10dp"
android:textColor="@android:color/black"
android:text="Description"
android:textSize="16sp"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<!--Product description box goes here-->
<android.support.v7.widget.CardView
android:layout_marginLeft="10dp"
android:layout_marginStart="10dp"
android:layout_marginRight="10dp"
android:layout_marginEnd="10dp"
app:cardCornerRadius="10dp"
app:cardElevation="2dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/description_box"
android:background="@drawable/description_box"
android:padding="5dp"
android:gravity="start"
android:hint="Write something about product"
android:scrollbarTrackVertical="@color/description_box_border"
android:scrollbars="vertical"
android:scrollbarSize="3dp"
android:maxLength="150"
android:minLines="3"
android:maxLines="4"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</android.support.v7.widget.CardView>
<!--Product MRP container goes here-->
<LinearLayout
android:layout_marginLeft="10dp"
android:layout_marginStart="10dp"
android:layout_marginRight="10dp"
android:layout_marginEnd="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!--Product MRP heading goes here-->
<TextView
android:text="MRP "
android:textColor="@android:color/black"
android:textSize="16sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<!--Product MRP edit text goes here-->
<EditText
android:id="@+id/product_price"
android:inputType="number"
android:textSize="16sp"
android:maxLength="5"
android:hint="Product MRP"
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content" />
</LinearLayout>
<!--Product deal price container goes here-->
<LinearLayout
android:layout_marginLeft="10dp"
android:layout_marginStart="10dp"
android:layout_marginRight="10dp"
android:layout_marginEnd="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!--Product deal price heading goes here-->
<TextView
android:text="Deal Price "
android:textColor="@android:color/black"
android:textSize="16sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<!--Product deal price edit text goes here-->
<EditText
android:id="@+id/product_deal_price"
android:inputType="number"
android:textSize="16sp"
android:maxLength="5"
android:hint="Product deal price with us"
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content" />
</LinearLayout>
<!--Number of items container goes here-->
<LinearLayout
android:layout_marginLeft="10dp"
android:layout_marginStart="10dp"
android:layout_marginRight="10dp"
android:layout_marginEnd="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!--Number of items heading goes here-->
<TextView
android:text="Number of items "
android:textColor="@android:color/black"
android:textSize="16sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<!--Number of items edit text goes here-->
<EditText
android:id="@+id/product_no_of_items"
android:inputType="number"
android:textSize="16sp"
android:maxLength="3"
android:hint="Number of items to sell online"
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content" />
</LinearLayout>
<!--Cancel and add button will go here-->
<LinearLayout
android:layout_margin="10dp"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<Button
android:textColor="@color/white"
android:layout_marginRight="10dp"
android:layout_marginEnd="10dp"
android:background="@drawable/round_with_solid_fill"
android:text="Cancel"
android:id="@+id/cancel_button"
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content" />
<Button
android:textColor="@color/white"
android:layout_marginLeft="10dp"
android:layout_marginStart="10dp"
android:background="@drawable/round_with_solid_fill"
android:text="Add"
android:id="@+id/add_button"
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
</ScrollView>