time_header_label.xml revision 3ed7dbaf325baa6edb579becd18b0b89f5a1416d
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<FrameLayout 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:padding="@dimen/timepicker_separator_padding" 22 android:gravity="center"> 23 24 <LinearLayout 25 android:layout_width="wrap_content" 26 android:layout_height="wrap_content" 27 android:layout_gravity="center" 28 android:gravity="bottom" 29 android:orientation="horizontal" 30 android:layoutDirection="ltr"> 31 32 <TextView 33 android:id="@+id/hours" 34 android:layout_width="wrap_content" 35 android:layout_height="wrap_content" 36 android:gravity="end" 37 android:layoutDirection="locale" /> 38 39 <TextView 40 android:id="@+id/separator" 41 android:layout_width="wrap_content" 42 android:layout_height="wrap_content" 43 android:layout_marginLeft="@dimen/timepicker_separator_padding" 44 android:layout_marginRight="@dimen/timepicker_separator_padding" 45 android:importantForAccessibility="no" 46 android:layoutDirection="locale" /> 47 48 <TextView 49 android:id="@+id/minutes" 50 android:layout_width="wrap_content" 51 android:layout_height="wrap_content" 52 android:gravity="start" 53 android:layoutDirection="locale" /> 54 55 <LinearLayout 56 android:id="@+id/ampm_layout" 57 android:layout_width="wrap_content" 58 android:layout_height="wrap_content" 59 android:orientation="vertical" 60 android:baselineAlignedChildIndex="1" 61 android:layoutDirection="locale"> 62 <CheckedTextView 63 android:id="@+id/am_label" 64 android:layout_width="wrap_content" 65 android:layout_height="wrap_content" 66 android:paddingStart="@dimen/timepicker_ampm_horizontal_padding" 67 android:paddingEnd="@dimen/timepicker_ampm_horizontal_padding" 68 android:paddingTop="@dimen/timepicker_ampm_vertical_padding" 69 android:lines="1" 70 android:ellipsize="none" /> 71 <CheckedTextView 72 android:id="@+id/pm_label" 73 android:layout_width="wrap_content" 74 android:layout_height="wrap_content" 75 android:paddingStart="@dimen/timepicker_ampm_horizontal_padding" 76 android:paddingEnd="@dimen/timepicker_ampm_horizontal_padding" 77 android:paddingTop="@dimen/timepicker_pm_top_padding" 78 android:lines="1" 79 android:ellipsize="none" /> 80 </LinearLayout> 81 </LinearLayout> 82</FrameLayout> 83