Android O SDK.
[android_tools.git] / sdk / platforms / android-26 / data / res / layout / date_picker_header_material.xml
blob81f08fd9a748d047253f476b45b5fbbff8c63239
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3      Copyright (C) 2015 The Android Open Source Project
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
9           http://www.apache.org/licenses/LICENSE-2.0
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 -->
18 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19               android:id="@+id/date_picker_header"
20               android:layout_width="match_parent"
21               android:layout_height="wrap_content"
22               android:orientation="vertical">
24     <LinearLayout
25         android:layout_width="match_parent"
26         android:layout_height="wrap_content"
27         android:paddingStart="?attr/dialogPreferredPadding"
28         android:paddingEnd="?attr/dialogPreferredPadding"
29         android:paddingTop="16dp"
30         android:paddingBottom="18dp"
31         android:orientation="vertical"
32         android:clipToPadding="false"
33         android:clipChildren="false">
35         <TextView
36             android:id="@+id/date_picker_header_year"
37             android:layout_width="wrap_content"
38             android:layout_height="wrap_content"
39             android:focusable="true"
40             android:includeFontPadding="false"
41             android:layout_marginStart="-8dp"
42             android:layout_marginEnd="-8dp"
43             android:layout_marginTop="-8dp"
44             android:layout_marginBottom="-8dp"
45             android:padding="8dp"
46             android:background="?attr/selectableItemBackground"
47             android:textAppearance="@style/TextAppearance.Material.DatePicker.YearLabel"
48             android:pointerIcon="hand"
49             android:nextFocusForward="@+id/prev" />
51         <TextView
52             android:id="@+id/date_picker_header_date"
53             android:layout_width="wrap_content"
54             android:layout_height="wrap_content"
55             android:textAppearance="@style/TextAppearance.Material.DatePicker.DateLabel"
56             android:includeFontPadding="false"
57             android:gravity="start"
58             android:maxLines="@integer/date_picker_header_max_lines_material"
59             android:pointerIcon="hand"
60             android:ellipsize="none" />
61     </LinearLayout>
62 </LinearLayout>