1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3** 4** Copyright 2011, The Android Open Source Project 5** 6** Licensed under the Apache License, Version 2.0 (the "License"); 7** you may not use this file except in compliance with the License. 8** You may obtain a copy of the License at 9** 10** http://www.apache.org/licenses/LICENSE-2.0 11** 12** Unless required by applicable law or agreed to in writing, software 13** distributed under the License is distributed on an "AS IS" BASIS, 14** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15** See the License for the specific language governing permissions and 16** limitations under the License. 17*/ 18--> 19 20<!-- Layout of date picker--> 21 22<!-- Warning: everything within the "pickers" layout is removed and re-ordered 23 depending on the date format selected by the user. 24--> 25<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 26 android:layout_width="wrap_content" 27 android:layout_height="wrap_content" 28 android:layout_gravity="center_horizontal" 29 android:orientation="horizontal" 30 android:gravity="center"> 31 32 <LinearLayout android:id="@+id/pickers" 33 android:layout_width="wrap_content" 34 android:layout_height="wrap_content" 35 android:layout_weight="1" 36 android:orientation="horizontal" 37 android:gravity="center"> 38 39 <!-- Month --> 40 <NumberPicker 41 android:id="@+id/month" 42 android:layout_width="wrap_content" 43 android:layout_height="wrap_content" 44 android:layout_marginTop="@dimen/picker_top_margin" 45 android:layout_marginBottom="@dimen/picker_bottom_margin" 46 android:layout_marginStart="8dip" 47 android:layout_marginEnd="8dip" 48 android:focusable="true" 49 android:focusableInTouchMode="true" 50 /> 51 52 <!-- Day --> 53 <NumberPicker 54 android:id="@+id/day" 55 android:layout_width="wrap_content" 56 android:layout_height="wrap_content" 57 android:layout_marginTop="@dimen/picker_top_margin" 58 android:layout_marginBottom="@dimen/picker_bottom_margin" 59 android:layout_marginStart="8dip" 60 android:layout_marginEnd="8dip" 61 android:focusable="true" 62 android:focusableInTouchMode="true" 63 /> 64 65 <!-- Year --> 66 <NumberPicker 67 android:id="@+id/year" 68 android:layout_width="wrap_content" 69 android:layout_height="wrap_content" 70 android:layout_marginTop="@dimen/picker_top_margin" 71 android:layout_marginBottom="@dimen/picker_bottom_margin" 72 android:layout_marginStart="8dip" 73 android:layout_marginEnd="16dip" 74 android:focusable="true" 75 android:focusableInTouchMode="true" 76 /> 77 78 </LinearLayout> 79 80 <!-- calendar view --> 81 <CalendarView 82 android:id="@+id/calendar_view" 83 android:layout_width="245dip" 84 android:layout_height="280dip" 85 android:layout_marginStart="16dip" 86 android:layout_marginEnd="16dip" 87 android:layout_weight="1" 88 android:focusable="true" 89 android:focusableInTouchMode="true" 90 /> 91 92</LinearLayout> 93