date_picker_selected_date.xml revision f39d65028092d55ef8eade401f1a813ba11e084e
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright (C) 2014 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
18<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19    android:id="@+id/day_picker_selector_layout"
20    android:layout_width="@dimen/datepicker_component_width"
21    android:layout_height="wrap_content"
22    android:gravity="center"
23    android:orientation="vertical">
24
25    <TextView
26        android:id="@+id/date_picker_header"
27        android:layout_width="match_parent"
28        android:layout_height="@dimen/datepicker_header_height"
29        android:gravity="center"
30        android:importantForAccessibility="no" />
31
32    <LinearLayout
33        android:id="@+id/date_picker_month_day_year_layout"
34        android:layout_width="match_parent"
35        android:layout_height="0dp"
36        android:layout_weight="1"
37        android:paddingTop="4dp"
38        android:paddingBottom="4dp"
39        android:orientation="vertical"
40        android:gravity="center">
41
42        <LinearLayout
43            android:id="@+id/date_picker_month_and_day_layout"
44            android:layout_width="match_parent"
45            android:layout_height="wrap_content"
46            android:clickable="true"
47            android:orientation="vertical">
48
49            <TextView
50                android:id="@+id/date_picker_month"
51                android:layout_width="match_parent"
52                android:layout_height="wrap_content"
53                android:duplicateParentState="true"
54                android:gravity="center" />
55
56            <TextView
57                android:id="@+id/date_picker_day"
58                android:layout_width="match_parent"
59                android:layout_height="wrap_content"
60                android:layout_marginTop="-23dp"
61                android:layout_marginBottom="-20dp"
62                android:duplicateParentState="true"
63                android:gravity="center" />
64        </LinearLayout>
65
66        <TextView
67            android:id="@+id/date_picker_year"
68            android:layout_width="match_parent"
69            android:layout_height="wrap_content"
70            android:gravity="center" />
71    </LinearLayout>
72
73</LinearLayout>
74