-
Notifications
You must be signed in to change notification settings - Fork 0
/
non_veg_fragment_layout.xml
323 lines (279 loc) · 12.4 KB
/
non_veg_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
<?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 quantity 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 quantity heading goes here-->
<TextView
android:text="Quantity "
android:textColor="@android:color/black"
android:textSize="16sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<!--Product quantity edit text goes here-->
<EditText
android:id="@+id/product_quantity"
android:inputType="text"
android:textSize="16sp"
android:maxLength="7"
android:hint="Product quantity"
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 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 price heading goes here-->
<TextView
android:text="Price "
android:textColor="@android:color/black"
android:textSize="16sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<!--Product price edit text goes here-->
<EditText
android:id="@+id/product_price"
android:inputType="number"
android:textSize="16sp"
android:maxLength="4"
android:hint="Product price"
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="4"
android:hint="Product deal price with us"
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content" />
</LinearLayout>
<!--Total amount 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">
<!--Total amount heading goes here-->
<TextView
android:text="Total amount "
android:textColor="@android:color/black"
android:textSize="16sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<!--Total amount edit text goes here-->
<EditText
android:id="@+id/product_no_of_items"
android:inputType="number"
android:textSize="16sp"
android:maxLength="7"
android:hint="Total amount 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>