1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (c) 2012, The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16 17<!-- Layout of time interval picker --> 18<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 19 android:id="@+id/time_interval_picker" 20 android:orientation="vertical" 21 android:layout_height="wrap_content" 22 android:layout_width="match_parent"> 23 24 <LinearLayout 25 android:layout_width="match_parent" 26 android:layout_height="wrap_content" 27 android:orientation="vertical"> 28 29 <TextView 30 android:id="@+id/set_time_interval_title" 31 android:layout_width="match_parent" 32 android:layout_height="match_parent" 33 android:paddingTop="5dip" 34 android:gravity="center" 35 android:textAppearance="?android:attr/textAppearanceMedium" 36 android:text="@string/set_time_interval"/> 37 </LinearLayout> 38 39 <LinearLayout 40 android:orientation="horizontal" 41 android:layout_width="match_parent" 42 android:layout_height="wrap_content" 43 android:paddingLeft="16dip" 44 android:paddingRight="16dip" > 45 46 <!-- time interval duration --> 47 <NumberPicker 48 android:id="@+id/duration" 49 android:layout_width="wrap_content" 50 android:layout_height="wrap_content" 51 android:layout_weight="1" 52 android:focusable="false" /> 53 54 <!-- time interval duration units (seconds/minutes/hours) --> 55 <NumberPicker 56 android:id="@+id/duration_unit" 57 android:layout_width="wrap_content" 58 android:layout_height="wrap_content" 59 android:layout_weight="2" 60 android:layout_marginLeft="20dip" 61 android:focusable="false" /> 62 63 </LinearLayout> 64</LinearLayout> 65 66