diff options
Diffstat (limited to 'res/layout/gesture_create.xml')
-rw-r--r-- | res/layout/gesture_create.xml | 51 |
1 files changed, 23 insertions, 28 deletions
diff --git a/res/layout/gesture_create.xml b/res/layout/gesture_create.xml index 2864bc7..60eccb8 100644 --- a/res/layout/gesture_create.xml +++ b/res/layout/gesture_create.xml @@ -14,75 +14,70 @@ limitations under the License. --> -<LinearLayout - xmlns:android="http://schemas.android.com/apk/res/android" - +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" - - android:orientation="vertical"> + android:orientation="vertical" > <!-- The "Name" bar at the top --> + <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" - android:orientation="horizontal"> - <!-- The prompt --> + android:orientation="horizontal" > + + <!-- The prompt --> + <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="6dip" - android:text="@string/prompt_gesture_name" android:textAppearance="?android:attr/textAppearanceMedium" /> <!-- The input --> + <EditText android:id="@+id/gesture_name" android:layout_width="0dip" - android:layout_weight="1.0" android:layout_height="wrap_content" + android:layout_weight="1.0" android:inputType="text" - android:maxLength="40" android:singleLine="true" /> - </LinearLayout> <!-- The gesture input --> + <android.gesture.GestureOverlayView android:id="@+id/gestures_overlay" android:layout_width="match_parent" android:layout_height="0dip" android:layout_weight="1.0" - android:gestureStrokeType="multiple" /> - <!-- The "add" and "cancel" buttons --> + <!-- The "add" and "cancel" buttons --> + <LinearLayout style="@android:style/ButtonBar" android:layout_width="match_parent" android:layout_height="wrap_content" - android:orientation="horizontal"> + android:orientation="horizontal" > <Button android:id="@+id/done" - android:onClick="addGesture" - android:text="@string/button_done" - - android:enabled="false" - + style="?android:attr/buttonBarButtonStyle" android:layout_width="0dip" android:layout_height="wrap_content" - android:layout_weight="1" - style="?android:attr/buttonBarButtonStyle" /> + android:layout_weight="1" + android:enabled="false" + android:onClick="addGesture" + android:text="@string/button_done" /> <Button - android:onClick="cancelGesture" - android:text="@string/button_discard" - + style="?android:attr/buttonBarButtonStyle" android:layout_width="0dip" android:layout_height="wrap_content" - android:layout_weight="1" - style="?android:attr/buttonBarButtonStyle" /> - + android:layout_weight="1" + android:onClick="cancelGesture" + android:text="@string/button_discard" /> </LinearLayout> - + </LinearLayout> |