time_header_label.xml revision 67945c11a5e9547f71be91ceb99e7b9ff15a6292
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    <RelativeLayout
22        android:layout_width="match_parent"
23        android:layout_height="match_parent">
24        <TextView
25            android:id="@+id/hours"
26            android:layout_width="wrap_content"
27            android:layout_height="wrap_content"
28            android:layout_toLeftOf="@+id/separator"
29            android:layout_centerVertical="true" />
30        <TextView
31            android:id="@+id/separator"
32            android:layout_width="wrap_content"
33            android:layout_height="wrap_content"
34            android:paddingLeft="@dimen/timepicker_separator_padding"
35            android:paddingRight="@dimen/timepicker_separator_padding"
36            android:layout_centerInParent="true"
37            android:importantForAccessibility="no" />
38        <TextView
39            android:id="@+id/minutes"
40            android:layout_width="wrap_content"
41            android:layout_height="wrap_content"
42            android:layout_toRightOf="@+id/separator"
43            android:layout_centerVertical="true" />
44        <LinearLayout
45            android:id="@+id/ampm_layout"
46            android:layout_alignBaseline="@+id/minutes"
47            android:layout_toEndOf="@+id/separator"
48            android:layout_width="wrap_content"
49            android:layout_height="wrap_content"
50            android:baselineAlignedChildIndex="1"
51            android:orientation="vertical">
52            <CheckedTextView
53                android:id="@+id/am_label"
54                android:layout_width="wrap_content"
55                android:layout_height="wrap_content"
56                android:paddingStart="@dimen/timepicker_ampm_horizontal_padding"
57                android:paddingTop="@dimen/timepicker_ampm_vertical_padding"
58                android:paddingEnd="@dimen/timepicker_ampm_horizontal_padding"
59                android:paddingBottom="@dimen/timepicker_am_bottom_padding" />
60            <CheckedTextView
61                android:id="@+id/pm_label"
62                android:layout_width="wrap_content"
63                android:layout_height="wrap_content"
64                android:paddingStart="@dimen/timepicker_ampm_horizontal_padding"
65                android:paddingTop="@dimen/timepicker_pm_top_padding"
66                android:paddingEnd="@dimen/timepicker_ampm_horizontal_padding"
67                android:paddingBottom="@dimen/timepicker_ampm_vertical_padding" />
68        </LinearLayout>
69    </RelativeLayout>
70</FrameLayout>
71