• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3**
4** Copyright 2008, 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="vertical"
24    android:layout_width="fill_parent"
25    android:layout_height="wrap_content">
26
27    <TextView
28        android:text="@string/weekpicker_title"
29        android:textAppearance="?android:attr/textAppearanceMedium"
30        android:layout_gravity="center_horizontal"
31        android:layout_width="wrap_content"
32        android:layout_height="wrap_content" />
33
34    <!-- weeks -->
35    <com.android.internal.widget.VerticalTextSpinner
36        android:id="@+id/weeks"
37        android:layout_width="120dip"
38        android:layout_height="120dip"
39        android:focusable="true"
40        android:focusableInTouchMode="true"
41        android:layout_gravity="center_horizontal"
42        android:layout_marginTop="6dip"
43        android:layout_marginBottom="6dip"
44        />
45
46    <!-- Set button -->
47    <RelativeLayout
48        android:layout_width="fill_parent"
49        android:layout_height="wrap_content"
50        android:padding="6dip"
51        android:background="#ffffff" >
52
53        <Button android:id="@+id/set"
54            android:layout_width="120dip"
55            android:layout_height="wrap_content"
56            android:text="@string/weekpicker_set"
57            android:layout_alignParentLeft="true" />
58
59        <Button android:id="@+id/cancel"
60            android:layout_width="120dip"
61            android:layout_height="wrap_content"
62            android:text="@string/cancel"
63            android:layout_alignParentRight="true" />
64
65    </RelativeLayout>
66
67</LinearLayout>
68
69