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<LinearLayout 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 19 android:layout_width="match_parent" 20 android:layout_height="match_parent" 21 22 android:orientation="vertical"> 23 24 <ListView 25 android:id="@android:id/list" 26 27 android:layout_width="match_parent" 28 android:layout_height="0dip" 29 android:layout_weight="1.0" /> 30 31 <TextView 32 android:id="@android:id/empty" 33 android:layout_width="match_parent" 34 android:layout_height="0dip" 35 android:layout_weight="1.0" 36 37 android:gravity="center" 38 39 android:text="@string/gestures_loading" 40 android:textAppearance="?android:attr/textAppearanceMedium" /> 41 42 <LinearLayout 43 style="@android:style/ButtonBar" 44 45 android:layout_width="match_parent" 46 android:layout_height="wrap_content" 47 48 android:orientation="horizontal"> 49 50 <Button 51 android:id="@+id/addButton" 52 android:onClick="addGesture" 53 54 android:layout_width="0dip" 55 android:layout_height="wrap_content" 56 android:layout_weight="1" 57 58 android:enabled="false" 59 android:text="@string/button_add" /> 60 61 <Button 62 android:id="@+id/reloadButton" 63 android:onClick="reloadGestures" 64 65 android:layout_width="0dip" 66 android:layout_height="wrap_content" 67 android:layout_weight="1" 68 69 android:enabled="false" 70 android:text="@string/button_reload" /> 71 72 </LinearLayout> 73 74</LinearLayout> 75 76