date_picker_holo.xml revision 4243dc394d89a93cb207efa36e9755c2424d688b
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="fill_parent"
27    android:layout_height="fill_parent"
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_marginRight="22dip"
36        android:layout_weight="1"
37        android:orientation="horizontal"
38        android:gravity="center">
39
40        <!-- Month -->
41        <NumberPicker
42            android:id="@+id/month"
43            android:layout_width="48dip"
44            android:layout_height="wrap_content"
45            android:layout_marginLeft="22dip"
46            android:layout_marginRight="22dip"
47            android:focusable="true"
48            android:focusableInTouchMode="true"
49            />
50
51        <!-- Day -->
52        <NumberPicker
53            android:id="@+id/day"
54            android:layout_width="48dip"
55            android:layout_height="wrap_content"
56            android:layout_marginLeft="22dip"
57            android:layout_marginRight="22dip"
58            android:focusable="true"
59            android:focusableInTouchMode="true"
60            />
61
62        <!-- Year -->
63        <NumberPicker
64            android:id="@+id/year"
65            android:layout_width="48dip"
66            android:layout_height="wrap_content"
67            android:layout_marginLeft="22dip"
68            android:layout_marginRight="22dip"
69            android:focusable="true"
70            android:focusableInTouchMode="true"
71            />
72
73    </LinearLayout>
74
75    <!-- calendar view -->
76    <CalendarView
77        android:id="@+id/calendar_view"
78        android:layout_width="245dip"
79        android:layout_height="280dip"
80        android:layout_marginLeft="22dip"
81        android:layout_weight="1"
82        android:focusable="true"
83        android:focusableInTouchMode="true"
84        />
85
86</LinearLayout>
87