1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3** 4** Copyright 2007, 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 parent is removed and re-ordered depending 23 on the date format selected by the user. --> 24<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 25 android:orientation="vertical" 26 android:layout_gravity="center_horizontal" 27 android:layout_width="wrap_content" 28 android:layout_height="wrap_content"> 29 30 <CheckBox 31 android:id="@+id/yearToggle" 32 android:text="@string/date_year_toggle" 33 android:paddingTop="5dip" 34 android:paddingBottom="5dip" 35 android:textAppearance="?android:attr/textAppearanceLarge" 36 android:layout_width="wrap_content" 37 android:layout_height="wrap_content"/> 38 <LinearLayout 39 android:id="@+id/parent" 40 android:orientation="horizontal" 41 android:layout_gravity="center_horizontal" 42 android:layout_width="wrap_content" 43 android:layout_height="wrap_content"> 44 45 <!-- Month --> 46 <NumberPicker 47 android:id="@+id/month" 48 android:layout_width="80dip" 49 android:layout_height="wrap_content" 50 android:layout_marginLeft="1dip" 51 android:layout_marginRight="1dip" 52 android:focusable="true" 53 android:focusableInTouchMode="true" 54 /> 55 56 <!-- Day --> 57 <NumberPicker 58 android:id="@+id/day" 59 android:layout_width="80dip" 60 android:layout_height="wrap_content" 61 android:layout_marginLeft="1dip" 62 android:layout_marginRight="1dip" 63 android:focusable="true" 64 android:focusableInTouchMode="true" 65 /> 66 67 <!-- Year --> 68 <NumberPicker 69 android:id="@+id/year" 70 android:layout_width="95dip" 71 android:layout_height="wrap_content" 72 android:layout_marginLeft="1dip" 73 android:layout_marginRight="1dip" 74 android:focusable="true" 75 android:focusableInTouchMode="true" 76 /> 77 </LinearLayout> 78</LinearLayout> 79