|
235 | 235 | android:maxLines="1" /> |
236 | 236 |
|
237 | 237 | <de.dlyt.yanndroid.oneui.widget.Spinner |
238 | | - android:id="@+id/spinner" |
| 238 | + android:id="@+id/test_spinner" |
239 | 239 | android:layout_width="wrap_content" |
240 | 240 | android:layout_height="wrap_content" |
241 | 241 | android:layout_gravity="start" |
|
250 | 250 | android:layout_width="fill_parent" |
251 | 251 | android:layout_height="wrap_content" |
252 | 252 | android:background="@color/item_background_color" |
253 | | - android:orientation="horizontal" |
| 253 | + android:orientation="vertical" |
254 | 254 | android:paddingHorizontal="24.0dip" |
255 | 255 | android:paddingVertical="14.0dip"> |
256 | | - |
257 | | - <com.google.android.material.button.MaterialButton |
258 | | - style="@style/ButtonStyle.Filled" |
259 | | - android:layout_width="0.0dip" |
260 | | - android:layout_height="wrap_content" |
261 | | - android:layout_gravity="center" |
262 | | - android:layout_marginEnd="6.0dip" |
263 | | - android:layout_weight="1" |
264 | | - android:onClick="standardDialog" |
265 | | - android:text="Standard" /> |
266 | | - |
267 | | - <com.google.android.material.button.MaterialButton |
268 | | - style="@style/ButtonStyle.Filled" |
269 | | - android:layout_width="0.0dip" |
| 256 | + <LinearLayout |
| 257 | + android:layout_width="fill_parent" |
270 | 258 | android:layout_height="wrap_content" |
271 | | - android:layout_gravity="center" |
272 | | - android:layout_marginHorizontal="6.0dip" |
273 | | - android:layout_weight="1" |
274 | | - android:onClick="singleChoiceDialog" |
275 | | - android:text="Selection" /> |
276 | | - |
277 | | - <com.google.android.material.button.MaterialButton |
278 | | - style="@style/ButtonStyle.Filled" |
279 | | - android:layout_width="0.0dip" |
| 259 | + android:layout_marginBottom="14.0dip" |
| 260 | + android:orientation="horizontal"> |
| 261 | + <com.google.android.material.button.MaterialButton |
| 262 | + style="@style/ButtonStyle.Filled" |
| 263 | + android:layout_width="0.0dip" |
| 264 | + android:layout_height="wrap_content" |
| 265 | + android:layout_gravity="center" |
| 266 | + android:layout_marginEnd="6.0dip" |
| 267 | + android:layout_weight="1" |
| 268 | + android:onClick="standardDialog" |
| 269 | + android:text="Standard" /> |
| 270 | + |
| 271 | + <com.google.android.material.button.MaterialButton |
| 272 | + style="@style/ButtonStyle.Filled" |
| 273 | + android:layout_width="0.0dip" |
| 274 | + android:layout_height="wrap_content" |
| 275 | + android:layout_gravity="center" |
| 276 | + android:layout_marginHorizontal="6.0dip" |
| 277 | + android:layout_weight="1" |
| 278 | + android:onClick="singleChoiceDialog" |
| 279 | + android:text="Selection" /> |
| 280 | + |
| 281 | + <com.google.android.material.button.MaterialButton |
| 282 | + style="@style/ButtonStyle.Filled" |
| 283 | + android:layout_width="0.0dip" |
| 284 | + android:layout_height="wrap_content" |
| 285 | + android:layout_gravity="center" |
| 286 | + android:layout_marginStart="6.0dip" |
| 287 | + android:layout_weight="1" |
| 288 | + android:onClick="progressDialogSpinner" |
| 289 | + android:text="Progress" /> |
| 290 | + </LinearLayout> |
| 291 | + |
| 292 | + <LinearLayout |
| 293 | + android:layout_width="fill_parent" |
280 | 294 | android:layout_height="wrap_content" |
281 | | - android:layout_gravity="center" |
282 | | - android:layout_marginStart="6.0dip" |
283 | | - android:layout_weight="1" |
284 | | - android:onClick="progressDialogSpinner" |
285 | | - android:text="Progress" /> |
| 295 | + android:orientation="horizontal"> |
| 296 | + <com.google.android.material.button.MaterialButton |
| 297 | + style="@style/ButtonStyle.Filled" |
| 298 | + android:layout_width="0.0dip" |
| 299 | + android:layout_height="wrap_content" |
| 300 | + android:layout_gravity="center" |
| 301 | + android:layout_marginEnd="6.0dip" |
| 302 | + android:layout_weight="1" |
| 303 | + android:onClick="timePickerDialog" |
| 304 | + android:text="Time Picker" /> |
| 305 | + |
| 306 | + <com.google.android.material.button.MaterialButton |
| 307 | + style="@style/ButtonStyle.Filled" |
| 308 | + android:layout_width="0.0dip" |
| 309 | + android:layout_height="wrap_content" |
| 310 | + android:layout_gravity="center" |
| 311 | + android:layout_marginStart="6.0dip" |
| 312 | + android:layout_weight="1" |
| 313 | + android:onClick="datePickerDialog" |
| 314 | + android:text="Date Picker" /> |
| 315 | + </LinearLayout> |
286 | 316 | </de.dlyt.yanndroid.oneui.widget.RoundLinearLayout> |
287 | 317 |
|
288 | 318 | <com.google.android.material.textview.MaterialTextView |
|
294 | 324 | android:layout_height="wrap_content" |
295 | 325 | android:background="@color/item_background_color" |
296 | 326 | android:orientation="horizontal" |
297 | | - android:paddingHorizontal="24.0dip" |
298 | | - android:paddingVertical="14.0dip" |
| 327 | + android:paddingHorizontal="12.0dip" |
| 328 | + android:paddingVertical="10.0dip" |
299 | 329 | app:roundedCorners="top_left|top_right"> |
300 | 330 |
|
301 | | - <com.google.android.material.button.MaterialButton |
302 | | - style="@style/ButtonStyle.Filled" |
303 | | - android:layout_width="0.0dip" |
304 | | - android:layout_height="wrap_content" |
305 | | - android:layout_gravity="center" |
306 | | - android:layout_marginEnd="6.0dip" |
307 | | - android:layout_weight="1" |
308 | | - android:onClick="timePickerDialog" |
309 | | - android:text="Time Picker" /> |
310 | | - |
311 | | - <com.google.android.material.button.MaterialButton |
312 | | - style="@style/ButtonStyle.Filled" |
313 | | - android:layout_width="0.0dip" |
| 331 | + <de.dlyt.yanndroid.oneui.widget.Spinner |
| 332 | + android:id="@+id/pickers_spinner" |
| 333 | + android:layout_width="wrap_content" |
314 | 334 | android:layout_height="wrap_content" |
315 | | - android:layout_gravity="center" |
316 | | - android:layout_marginStart="6.0dip" |
317 | | - android:layout_weight="1" |
318 | | - android:onClick="datePickerDialog" |
319 | | - android:text="Date Picker" /> |
| 335 | + android:layout_gravity="start" /> |
| 336 | + |
320 | 337 | </de.dlyt.yanndroid.oneui.widget.RoundLinearLayout> |
321 | 338 |
|
322 | 339 | <de.dlyt.yanndroid.oneui.widget.RoundLinearLayout |
|
327 | 344 | android:paddingVertical="12.0dip" |
328 | 345 | app:roundedCorners="bottom_left|bottom_right"> |
329 | 346 |
|
330 | | - <de.dlyt.yanndroid.oneui.widget.NumberPicker |
331 | | - android:id="@+id/numberpicker" |
332 | | - android:layout_width="wrap_content" |
333 | | - android:layout_height="wrap_content" /> |
| 347 | + <LinearLayout |
| 348 | + android:id="@+id/numberpickers_container" |
| 349 | + android:layout_width="fill_parent" |
| 350 | + android:layout_height="wrap_content" |
| 351 | + android:gravity="center" |
| 352 | + android:orientation="horizontal"> |
| 353 | + <de.dlyt.yanndroid.oneui.widget.NumberPicker |
| 354 | + android:id="@+id/numberpicker1" |
| 355 | + android:layout_width="wrap_content" |
| 356 | + android:layout_height="wrap_content" /> |
| 357 | + <de.dlyt.yanndroid.oneui.widget.NumberPicker |
| 358 | + android:id="@+id/numberpicker2" |
| 359 | + android:layout_width="wrap_content" |
| 360 | + android:layout_height="wrap_content" /> |
| 361 | + <de.dlyt.yanndroid.oneui.widget.NumberPicker |
| 362 | + android:id="@+id/numberpicker3" |
| 363 | + android:layout_width="wrap_content" |
| 364 | + android:layout_height="wrap_content" /> |
| 365 | + </LinearLayout> |
334 | 366 |
|
335 | 367 | <de.dlyt.yanndroid.oneui.widget.TimePicker |
| 368 | + android:id="@+id/timepicker" |
336 | 369 | android:layout_width="wrap_content" |
337 | 370 | android:layout_height="wrap_content" /> |
338 | 371 |
|
339 | | - <de.dlyt.yanndroid.oneui.widget.SpinningDatePicker |
340 | | - android:layout_width="fill_parent" |
341 | | - android:layout_height="wrap_content" /> |
342 | | - |
343 | 372 | <de.dlyt.yanndroid.oneui.widget.DatePicker |
344 | 373 | android:id="@+id/datepicker" |
345 | 374 | android:layout_width="wrap_content" |
346 | 375 | android:layout_height="wrap_content" /> |
347 | 376 |
|
| 377 | + <de.dlyt.yanndroid.oneui.widget.SpinningDatePicker |
| 378 | + android:id="@+id/spinningdatepicker" |
| 379 | + android:layout_width="fill_parent" |
| 380 | + android:layout_height="wrap_content" /> |
| 381 | + |
348 | 382 | </de.dlyt.yanndroid.oneui.widget.RoundLinearLayout> |
349 | 383 |
|
350 | 384 | <com.google.android.material.textview.MaterialTextView |
|
0 commit comments