OLD | NEW |
1 <?xml version="1.0" encoding="utf-8"?> | 1 <?xml version="1.0" encoding="utf-8"?> |
2 <!-- Copyright 2013 The Chromium Authors. All rights reserved. | 2 <!-- Copyright 2013 The Chromium Authors. All rights reserved. |
3 | 3 |
4 Use of this source code is governed by a BSD-style license that can be | 4 Use of this source code is governed by a BSD-style license that can be |
5 found in the LICENSE file. | 5 found in the LICENSE file. |
6 --> | 6 --> |
7 | 7 |
8 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | 8 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
9 android:layout_width="wrap_content" | 9 android:layout_width="wrap_content" |
10 android:layout_height="wrap_content" | 10 android:layout_height="wrap_content" |
11 android:layout_gravity="center_vertical" | 11 android:layout_gravity="center_vertical" |
12 android:orientation="vertical" | 12 android:orientation="vertical" |
13 android:gravity="start"> | 13 android:gravity="start"> |
14 | 14 |
15 <TextView | 15 <TextView |
16 android:layout_width="wrap_content" | 16 android:layout_width="wrap_content" |
17 android:layout_height="wrap_content" | 17 android:layout_height="wrap_content" |
18 android:text="@string/time_picker_dialog_title" | 18 android:text="@string/time_picker_dialog_title" |
19 android:textSize="20sp" | 19 android:textSize="20sp" |
20 android:paddingStart="5dp" | 20 android:paddingStart="5dp" |
21 android:paddingEnd="5dp" | 21 android:paddingEnd="5dp" |
22 android:paddingBottom="5dp" | 22 android:paddingBottom="5dp" |
23 android:paddingTop="5dp" | 23 android:paddingTop="5dp" |
24 android:gravity="start" | 24 android:gravity="start" |
25 android:textColor="#33B5E5" | 25 android:textColor="#33B5E5" |
26 /> | 26 /> |
27 | 27 |
28 <View | 28 <View |
29 » android:layout_width="fill_parent" | 29 » android:layout_width="match_parent" |
30 android:layout_height="2dp" | 30 android:layout_height="2dp" |
31 android:paddingBottom="5dp" | 31 android:paddingBottom="5dp" |
32 android:paddingTop="5dp" | 32 android:paddingTop="5dp" |
33 android:background="#33B5E5"/> | 33 android:background="#33B5E5"/> |
34 | 34 |
35 <LinearLayout | 35 <LinearLayout |
36 android:layout_width="wrap_content" | 36 android:layout_width="wrap_content" |
37 android:layout_height="wrap_content" | 37 android:layout_height="wrap_content" |
38 android:layout_gravity="center_horizontal" | 38 android:layout_gravity="center_horizontal" |
39 android:orientation="horizontal" | 39 android:orientation="horizontal" |
40 android:gravity="center"> | 40 android:gravity="center"> |
41 | 41 |
42 <NumberPicker | 42 <NumberPicker |
43 android:id="@+id/hour" | 43 android:id="@+id/hour" |
44 » android:layout_width="0dip" | 44 » android:layout_width="0dp" |
45 android:layout_weight=".2" | 45 android:layout_weight=".2" |
46 android:textSize="12sp" | 46 android:textSize="12sp" |
47 android:layout_height="wrap_content" | 47 android:layout_height="wrap_content" |
48 » android:layout_marginStart="4dip" | 48 » android:layout_marginStart="4dp" |
49 » android:layout_marginEnd="4dip" | 49 » android:layout_marginEnd="4dp" |
50 android:focusable="true" | 50 android:focusable="true" |
51 android:focusableInTouchMode="true" | 51 android:focusableInTouchMode="true" |
52 android:contentDescription="@string/accessibility_time_picker_hour" | 52 android:contentDescription="@string/accessibility_time_picker_hour" |
53 /> | 53 /> |
54 <TextView | 54 <TextView |
55 android:layout_width="wrap_content" | 55 android:layout_width="wrap_content" |
56 android:textSize="12sp" | 56 android:textSize="12sp" |
57 android:layout_height="wrap_content" | 57 android:layout_height="wrap_content" |
58 android:text="@string/time_picker_dialog_hour_minute_separator" | 58 android:text="@string/time_picker_dialog_hour_minute_separator" |
59 /> | 59 /> |
60 <NumberPicker | 60 <NumberPicker |
61 android:id="@+id/minute" | 61 android:id="@+id/minute" |
62 » android:layout_width="0dip" | 62 » android:layout_width="0dp" |
63 android:layout_weight=".2" | 63 android:layout_weight=".2" |
64 android:textSize="12sp" | 64 android:textSize="12sp" |
65 android:layout_height="wrap_content" | 65 android:layout_height="wrap_content" |
66 » android:layout_marginStart="4dip" | 66 » android:layout_marginStart="4dp" |
67 » android:layout_marginEnd="4dip" | 67 » android:layout_marginEnd="4dp" |
68 android:focusable="true" | 68 android:focusable="true" |
69 android:focusableInTouchMode="true" | 69 android:focusableInTouchMode="true" |
70 android:contentDescription="@string/accessibility_time_picker_minute
" | 70 android:contentDescription="@string/accessibility_time_picker_minute
" |
71 /> | 71 /> |
72 <TextView | 72 <TextView |
73 android:id="@+id/second_colon" | 73 android:id="@+id/second_colon" |
74 android:layout_width="wrap_content" | 74 android:layout_width="wrap_content" |
75 android:textSize="12sp" | 75 android:textSize="12sp" |
76 android:layout_height="wrap_content" | 76 android:layout_height="wrap_content" |
77 android:text="@string/time_picker_dialog_minute_second_separator"
/> | 77 android:text="@string/time_picker_dialog_minute_second_separator"
/> |
78 <NumberPicker | 78 <NumberPicker |
79 android:id="@+id/second" | 79 android:id="@+id/second" |
80 » android:layout_width="0dip" | 80 » android:layout_width="0dp" |
81 android:layout_weight=".2" | 81 android:layout_weight=".2" |
82 android:textSize="12sp" | 82 android:textSize="12sp" |
83 android:layout_height="wrap_content" | 83 android:layout_height="wrap_content" |
84 » android:layout_marginStart="4dip" | 84 » android:layout_marginStart="4dp" |
85 » android:layout_marginEnd="4dip" | 85 » android:layout_marginEnd="4dp" |
86 android:focusable="true" | 86 android:focusable="true" |
87 android:focusableInTouchMode="true" | 87 android:focusableInTouchMode="true" |
88 android:contentDescription="@string/accessibility_time_picker_second
" | 88 android:contentDescription="@string/accessibility_time_picker_second
" |
89 /> | 89 /> |
90 <TextView | 90 <TextView |
91 android:id="@+id/second_dot" | 91 android:id="@+id/second_dot" |
92 android:layout_width="wrap_content" | 92 android:layout_width="wrap_content" |
93 android:textSize="12sp" | 93 android:textSize="12sp" |
94 android:layout_height="wrap_content" | 94 android:layout_height="wrap_content" |
95 android:text="@string/time_picker_dialog_second_subsecond_separator" | 95 android:text="@string/time_picker_dialog_second_subsecond_separator" |
96 /> | 96 /> |
97 <NumberPicker | 97 <NumberPicker |
98 android:id="@+id/milli" | 98 android:id="@+id/milli" |
99 » android:layout_width="0dip" | 99 » android:layout_width="0dp" |
100 android:layout_weight=".2" | 100 android:layout_weight=".2" |
101 android:textSize="12sp" | 101 android:textSize="12sp" |
102 android:layout_height="wrap_content" | 102 android:layout_height="wrap_content" |
103 » android:layout_marginStart="4dip" | 103 » android:layout_marginStart="4dp" |
104 » android:layout_marginEnd="4dip" | 104 » android:layout_marginEnd="4dp" |
105 android:focusable="true" | 105 android:focusable="true" |
106 android:focusableInTouchMode="true" | 106 android:focusableInTouchMode="true" |
107 android:contentDescription="@string/accessibility_time_picker_milli" | 107 android:contentDescription="@string/accessibility_time_picker_milli" |
108 /> | 108 /> |
109 <NumberPicker | 109 <NumberPicker |
110 android:id="@+id/ampm" | 110 android:id="@+id/ampm" |
111 » android:layout_width="0dip" | 111 » android:layout_width="0dp" |
112 android:layout_weight=".2" | 112 android:layout_weight=".2" |
113 android:textSize="12sp" | 113 android:textSize="12sp" |
114 android:layout_height="wrap_content" | 114 android:layout_height="wrap_content" |
115 » android:layout_marginStart="4dip" | 115 » android:layout_marginStart="4dp" |
116 » android:layout_marginEnd="4dip" | 116 » android:layout_marginEnd="4dp" |
117 android:focusable="true" | 117 android:focusable="true" |
118 android:focusableInTouchMode="true" | 118 android:focusableInTouchMode="true" |
119 android:contentDescription="@string/accessibility_time_picker_ampm" | 119 android:contentDescription="@string/accessibility_time_picker_ampm" |
120 /> | 120 /> |
121 </LinearLayout> | 121 </LinearLayout> |
122 </LinearLayout> | 122 </LinearLayout> |
OLD | NEW |