Add version 25.0.2 of dx.jar to sdk/build-tools.
[android_tools.git] / sdk / platforms / android-27 / data / res / layout-land / time_picker_material.xml
blobf3d4a84a2554d9147c6360dd3533607e7e801489
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3      Copyright (C) 2015 The Android Open Source Project
5      Licensed under the Apache License, Version 2.0 (the "License");
6      you may not use this file except in compliance with the License.
7      You may obtain a copy of the License at
9           http://www.apache.org/licenses/LICENSE-2.0
11      Unless required by applicable law or agreed to in writing, software
12      distributed under the License is distributed on an "AS IS" BASIS,
13      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14      See the License for the specific language governing permissions and
15      limitations under the License.
16 -->
18 <LinearLayout
19     xmlns:android="http://schemas.android.com/apk/res/android"
20     android:layout_width="match_parent"
21     android:layout_height="wrap_content">
23     <RelativeLayout
24         android:id="@+id/time_header"
25         android:layout_width="wrap_content"
26         android:layout_height="match_parent"
27         android:gravity="center"
28         android:paddingStart="?attr/dialogPreferredPadding"
29         android:paddingEnd="?attr/dialogPreferredPadding">
31         <LinearLayout
32             android:id="@+id/time_layout"
33             android:layoutDirection="ltr"
34             android:layout_width="wrap_content"
35             android:layout_height="wrap_content"
36             android:layout_centerHorizontal="true"
37             android:layout_centerVertical="true"
38             android:paddingTop="@dimen/timepicker_radial_picker_top_margin"
39             android:orientation="horizontal">
41             <!-- The hour should always be to the left of the separator,
42                  regardless of the current locale's layout direction. -->
43             <com.android.internal.widget.NumericTextView
44                 android:id="@+id/hours"
45                 android:layout_width="wrap_content"
46                 android:layout_height="wrap_content"
47                 android:textAppearance="@style/TextAppearance.Material.TimePicker.TimeLabel"
48                 android:background="@drawable/time_picker_editable_background"
49                 android:singleLine="true"
50                 android:ellipsize="none"
51                 android:gravity="right"
52                 android:focusable="true"
53                 android:pointerIcon="hand"
54                 android:nextFocusForward="@+id/minutes" />
56             <TextView
57                 android:id="@+id/separator"
58                 android:layout_width="wrap_content"
59                 android:layout_height="wrap_content"
60                 android:textAppearance="@style/TextAppearance.Material.TimePicker.TimeLabel"
61                 android:importantForAccessibility="no"
62                 android:includeFontPadding="false" />
64             <!-- The minutes should always be to the right of the separator,
65                  regardless of the current locale's layout direction. -->
66             <com.android.internal.widget.NumericTextView
67                 android:id="@+id/minutes"
68                 android:layout_width="wrap_content"
69                 android:layout_height="wrap_content"
70                 android:textAppearance="@style/TextAppearance.Material.TimePicker.TimeLabel"
71                 android:background="@drawable/time_picker_editable_background"
72                 android:singleLine="true"
73                 android:ellipsize="none"
74                 android:gravity="left"
75                 android:focusable="true"
76                 android:pointerIcon="hand"
77                 android:nextFocusForward="@+id/am_label" />
78         </LinearLayout>
80         <RadioGroup
81             android:id="@+id/ampm_layout"
82             android:layout_width="wrap_content"
83             android:layout_height="wrap_content"
84             android:layout_below="@+id/time_layout"
85             android:layout_centerHorizontal="true"
86             android:paddingTop="4dp"
87             android:paddingBottom="4dp"
88             android:orientation="vertical"
89             android:layoutDirection="locale">
90             <RadioButton
91                 android:id="@+id/am_label"
92                 android:layout_width="wrap_content"
93                 android:layout_height="wrap_content"
94                 android:padding="8dp"
95                 android:layout_marginBottom="-8dp"
96                 android:textAppearance="@style/TextAppearance.Material.TimePicker.AmPmLabel"
97                 android:lines="1"
98                 android:ellipsize="none"
99                 android:focusable="true"
100                 android:background="?android:attr/selectableItemBackground"
101                 android:includeFontPadding="false"
102                 android:nextFocusForward="@+id/pm_label"
103                 android:button="@null" />
104             <RadioButton
105                 android:id="@+id/pm_label"
106                 android:layout_width="wrap_content"
107                 android:layout_height="wrap_content"
108                 android:padding="8dp"
109                 android:textAppearance="@style/TextAppearance.Material.TimePicker.AmPmLabel"
110                 android:lines="1"
111                 android:ellipsize="none"
112                 android:focusable="true"
113                 android:background="?android:attr/selectableItemBackground"
114                 android:includeFontPadding="false"
115                 android:button="@null" />
116         </RadioGroup>
117     </RelativeLayout>
119     <TextView
120         android:visibility="gone"
121         android:id="@+id/input_header"
122         android:layout_width="wrap_content"
123         android:layout_height="match_parent"
124         android:gravity="center"
125         android:paddingStart="@dimen/dialog_padding_material"
126         android:paddingEnd="@dimen/dialog_padding_material"
127         android:paddingTop="20dp"
128         android:paddingBottom="20dp"
129         android:includeFontPadding="false"
130         android:textAppearance="@style/TextAppearance.Material.TimePicker.InputHeader"
131         android:text="@string/time_picker_header_text"/>
133     <LinearLayout
134         android:layout_width="wrap_content"
135         android:layout_height="wrap_content"
136         android:orientation="vertical">
138         <android.widget.RadialTimePickerView
139             android:id="@+id/radial_picker"
140             android:layout_width="@dimen/timepicker_radial_picker_dimen"
141             android:layout_height="@dimen/timepicker_radial_picker_dimen"
142             android:layout_gravity="center|fill"
143             android:layout_marginTop="@dimen/timepicker_radial_picker_top_margin"
144             android:layout_marginStart="@dimen/timepicker_radial_picker_horizontal_margin"
145             android:layout_marginEnd="@dimen/timepicker_radial_picker_horizontal_margin"
146             android:layoutDirection="locale" />
148         <android.widget.TextInputTimePickerView
149             android:id="@+id/input_mode"
150             android:layout_width="match_parent"
151             android:layout_height="wrap_content"
152             android:paddingStart="?attr/dialogPreferredPadding"
153             android:paddingEnd="?attr/dialogPreferredPadding"
154             android:visibility="gone" />
156         <LinearLayout
157             android:layout_width="match_parent"
158             android:layout_height="wrap_content">
159             <ImageButton
160                 android:id="@+id/toggle_mode"
161                 android:layout_width="wrap_content"
162                 android:layout_height="wrap_content"
163                 android:layout_gravity="center_vertical"
164                 android:layout_marginStart="12dp"
165                 android:layout_marginEnd="12dp"
166                 android:padding="12dp"
167                 android:background="?attr/selectableItemBackgroundBorderless"
168                 android:tint="?attr/colorControlNormal"
169                 android:src="@drawable/btn_keyboard_key_material"
170                 android:contentDescription="@string/time_picker_text_input_mode_description" />
171             <Space
172                 android:layout_width="wrap_content"
173                 android:layout_height="wrap_content"
174                 android:layout_weight="1" />
175             <ViewStub
176                 android:id="@id/buttonPanel"
177                 android:layout="@layout/alert_dialog_button_bar_material"
178                 android:layout_width="wrap_content"
179                 android:layout_height="wrap_content"
180                 android:layoutDirection="locale" />
181         </LinearLayout>
182     </LinearLayout>
184 </LinearLayout>