time_header_label.xml revision 014b8cfcf87507e629a728582b196b62aee71e37
1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2013 The Android Open Source Project 4 ~ 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 8 ~ 9 ~ http://www.apache.org/licenses/LICENSE-2.0 10 ~ 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 --> 17<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:id="@+id/time_header" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent" 21 android:layout_gravity="center" > 22 23 <TextView 24 android:id="@+id/hours" 25 android:layout_width="wrap_content" 26 android:layout_height="wrap_content" 27 android:layout_toLeftOf="@+id/separator" 28 android:layout_alignBaseline="@+id/separator" 29 android:textAppearance="?android:attr/timePickerHeaderTimeLabelTextAppearance"/> 30 31 <TextView 32 android:id="@+id/separator" 33 android:layout_width="wrap_content" 34 android:layout_height="wrap_content" 35 android:paddingLeft="@dimen/timepicker_separator_padding" 36 android:paddingRight="@dimen/timepicker_separator_padding" 37 android:layout_centerInParent="true" 38 android:textAppearance="?android:attr/timePickerHeaderTimeLabelTextAppearance" 39 android:importantForAccessibility="no" /> 40 41 <TextView 42 android:id="@+id/minutes" 43 android:layout_width="wrap_content" 44 android:layout_height="wrap_content" 45 android:layout_toRightOf="@+id/separator" 46 android:layout_alignBaseline="@+id/separator" 47 android:textAppearance="?android:attr/timePickerHeaderTimeLabelTextAppearance" /> 48 49 <TextView 50 android:id="@+id/ampm_label" 51 android:layout_width="wrap_content" 52 android:layout_height="wrap_content" 53 android:paddingLeft="@dimen/timepicker_ampm_left_padding" 54 android:paddingRight="@dimen/timepicker_ampm_left_padding" 55 android:layout_toRightOf="@+id/separator" 56 android:layout_alignBaseline="@+id/separator" 57 android:textAppearance="?android:attr/timePickerHeaderAmPmLabelTextAppearance" /> 58 59</RelativeLayout> 60