time_picker.xml revision 50f34d14f6dd3411fdbdb6a7b8b285c2b8fdbf5c
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 time picker--> 21 22<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 23 android:orientation="horizontal" 24 android:layout_gravity="center_horizontal" 25 android:layout_width="wrap_content" 26 android:layout_height="wrap_content"> 27 28 <!-- hour --> 29 <NumberPicker 30 android:id="@+id/hour" 31 android:layout_width="48dip" 32 android:layout_height="wrap_content" 33 android:layout_marginRight="13dip" 34 android:layout_marginTop="35dip" 35 android:layout_marginBottom="35dip" 36 android:focusable="true" 37 android:focusableInTouchMode="true" 38 /> 39 40 <!-- divider --> 41 <TextView 42 android:id="@+id/divider" 43 android:layout_width="wrap_content" 44 android:layout_height="wrap_content" 45 android:layout_gravity="center_vertical" 46 /> 47 48 <!-- minute --> 49 <NumberPicker 50 android:id="@+id/minute" 51 android:layout_width="48dip" 52 android:layout_height="wrap_content" 53 android:layout_marginLeft="13dip" 54 android:layout_marginRight="15dip" 55 android:layout_marginTop="35dip" 56 android:layout_marginBottom="35dip" 57 android:focusable="true" 58 android:focusableInTouchMode="true" 59 /> 60 61 <!-- AM / PM --> 62 <NumberPicker 63 android:id="@+id/amPm" 64 android:layout_width="48dip" 65 android:layout_height="wrap_content" 66 android:layout_marginLeft="15dip" 67 android:layout_marginTop="35dip" 68 android:layout_marginBottom="35dip" 69 android:focusable="true" 70 android:focusableInTouchMode="true" 71 /> 72 73</LinearLayout> 74