1 <?xml version="1.0" encoding="utf-8"?>
4 ** Copyright 2013, The Android Open Source Project
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
10 ** http://www.apache.org/licenses/LICENSE-2.0
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.
20 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
21 android:layout_width="match_parent"
22 android:layout_height="match_parent"
23 android:orientation="vertical">
25 layout="@layout/time_picker_header_material"
26 android:layout_width="match_parent"
27 android:layout_height="@dimen/timepicker_header_height"
28 android:layout_gravity="center" />
29 <android.widget.RadialTimePickerView
30 android:id="@+id/radial_picker"
31 android:layout_width="wrap_content"
32 android:layout_height="@dimen/timepicker_radial_picker_dimen"
33 android:layout_gravity="center"
34 android:layout_marginTop="@dimen/timepicker_radial_picker_top_margin"
35 android:layout_marginStart="@dimen/timepicker_radial_picker_horizontal_margin"
36 android:layout_marginEnd="@dimen/timepicker_radial_picker_horizontal_margin" />
38 android:visibility="gone"
39 android:id="@+id/input_header"
40 android:layout_width="match_parent"
41 android:layout_height="wrap_content"
42 android:paddingStart="@dimen/dialog_padding_material"
43 android:paddingEnd="@dimen/dialog_padding_material"
44 android:paddingTop="20dp"
45 android:paddingBottom="20dp"
46 android:includeFontPadding="false"
47 android:fontFamily="sans-serif-medium"
48 android:textSize="34sp"
49 android:textColor="@color/white"
50 android:text="@string/time_picker_header_text"/>
51 <android.widget.TextInputTimePickerView
52 android:id="@+id/input_mode"
53 android:layout_width="match_parent"
54 android:layout_height="wrap_content"
55 android:paddingStart="?attr/dialogPreferredPadding"
56 android:paddingEnd="?attr/dialogPreferredPadding"
57 android:visibility="gone" />
60 android:layout_width="match_parent"
61 android:layout_height="wrap_content">
63 android:id="@+id/toggle_mode"
64 android:layout_width="wrap_content"
65 android:layout_height="wrap_content"
66 android:layout_gravity="center_vertical"
67 android:layout_marginStart="12dp"
68 android:layout_marginEnd="12dp"
69 android:padding="12dp"
70 android:background="?attr/selectableItemBackgroundBorderless"
71 android:tint="?attr/colorControlNormal"
72 android:src="@drawable/btn_keyboard_key_material"
73 android:contentDescription="@string/time_picker_text_input_mode_description" />
75 android:layout_width="wrap_content"
76 android:layout_height="wrap_content"
77 android:layout_weight="1" />
79 android:id="@id/buttonPanel"
80 android:layout="@layout/alert_dialog_button_bar_material"
81 android:layout_width="wrap_content"
82 android:layout_height="wrap_content"
83 android:layoutDirection="locale" />