1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2009 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<LinearLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19
20    android:layout_width="match_parent"
21    android:layout_height="match_parent"
22
23    android:orientation="vertical">
24
25    <LinearLayout
26        android:layout_width="match_parent"
27        android:layout_height="wrap_content"
28
29        android:orientation="horizontal">
30
31        <TextView
32            android:layout_width="wrap_content"
33            android:layout_height="wrap_content"
34            android:layout_marginRight="6dip"
35
36            android:text="@string/prompt_gesture_name"
37            android:textAppearance="?android:attr/textAppearanceMedium" />
38
39        <EditText
40            android:id="@+id/gesture_name"
41            android:layout_width="0dip"
42            android:layout_weight="1.0"
43            android:layout_height="wrap_content"
44
45            android:maxLength="40"
46            android:singleLine="true" />
47
48    </LinearLayout>
49
50    <android.gesture.GestureOverlayView
51        android:id="@+id/gestures_overlay"
52        android:layout_width="match_parent"
53        android:layout_height="0dip"
54        android:layout_weight="1.0"
55
56        android:gestureStrokeType="multiple" />
57
58    <LinearLayout
59        style="@android:style/ButtonBar"
60
61        android:layout_width="match_parent"
62        android:layout_height="wrap_content"
63
64        android:orientation="horizontal">
65
66        <Button
67            android:id="@+id/done"
68
69            android:layout_width="0dip"
70            android:layout_height="wrap_content"
71            android:layout_weight="1"
72
73            android:enabled="false"
74
75            android:onClick="addGesture"
76            android:text="@string/button_done" />
77
78        <Button
79            android:layout_width="0dip"
80            android:layout_height="wrap_content"
81            android:layout_weight="1"
82
83            android:onClick="cancelGesture"
84            android:text="@string/button_discard" />
85
86    </LinearLayout>
87
88</LinearLayout>
89