Gurpreet Singh | 7138788 | 2023-01-09 19:07:43 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | ** |
| 4 | ** Copyright 2011, The Android Open Source Project |
| 5 | ** |
| 6 | ** Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | ** you may not use this file except in compliance with the License. |
| 8 | ** You may obtain a copy of the License at |
| 9 | ** |
| 10 | ** http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | ** |
| 12 | ** Unless required by applicable law or agreed to in writing, software |
| 13 | ** distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | ** See the License for the specific language governing permissions and |
| 16 | ** limitations under the License. |
| 17 | */ |
| 18 | --> |
| 19 | |
| 20 | <!-- Layout of time picker --> |
| 21 | |
| 22 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 23 | android:id="@+id/timePickerLayout" |
| 24 | android:orientation="horizontal" |
| 25 | android:layout_gravity="center_horizontal" |
| 26 | android:layout_width="wrap_content" |
| 27 | android:layout_height="wrap_content" |
| 28 | android:paddingStart="8dip" |
| 29 | android:paddingEnd="8dip"> |
| 30 | |
| 31 | <LinearLayout android:orientation="horizontal" |
| 32 | android:layout_width="wrap_content" |
| 33 | android:layout_height="wrap_content" |
| 34 | android:paddingStart="8dip" |
| 35 | android:paddingEnd="8dip" |
| 36 | android:layoutDirection="ltr"> |
| 37 | |
| 38 | <!-- hour --> |
| 39 | <NumberPicker |
| 40 | android:id="@+id/hour" |
| 41 | android:layout_width="wrap_content" |
| 42 | android:layout_height="wrap_content" |
| 43 | android:layout_marginTop="@dimen/picker_top_margin" |
| 44 | android:layout_marginBottom="@dimen/picker_bottom_margin" |
| 45 | android:focusable="true" |
| 46 | android:focusableInTouchMode="true" |
| 47 | /> |
| 48 | |
| 49 | <!-- divider --> |
| 50 | <TextView |
| 51 | android:id="@+id/divider" |
| 52 | android:layout_width="wrap_content" |
| 53 | android:layout_height="wrap_content" |
| 54 | android:layout_marginStart="6dip" |
| 55 | android:layout_marginEnd="6dip" |
| 56 | android:layout_gravity="center_vertical" |
| 57 | android:importantForAccessibility="no" |
| 58 | /> |
| 59 | |
| 60 | <!-- minute --> |
| 61 | <NumberPicker |
| 62 | android:id="@+id/minute" |
| 63 | android:layout_width="wrap_content" |
| 64 | android:layout_height="wrap_content" |
| 65 | android:layout_marginTop="@dimen/picker_top_margin" |
| 66 | android:layout_marginBottom="@dimen/picker_bottom_margin" |
| 67 | android:focusable="true" |
| 68 | android:focusableInTouchMode="true" |
| 69 | /> |
| 70 | |
| 71 | </LinearLayout> |
| 72 | |
| 73 | <!-- AM / PM --> |
| 74 | <NumberPicker |
| 75 | android:id="@+id/amPm" |
| 76 | android:layout_width="wrap_content" |
| 77 | android:layout_height="wrap_content" |
| 78 | android:layout_marginTop="@dimen/picker_top_margin" |
| 79 | android:layout_marginBottom="@dimen/picker_bottom_margin" |
| 80 | android:layout_marginStart="8dip" |
| 81 | android:layout_marginEnd="8dip" |
| 82 | android:focusable="true" |
| 83 | android:focusableInTouchMode="true" |
| 84 | /> |
| 85 | |
| 86 | </LinearLayout> |