1<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 android:layout_width="match_parent" 3 android:layout_height="match_parent" 4 android:orientation="vertical" > 5 6 <RelativeLayout 7 android:layout_width="match_parent" 8 android:layout_height="wrap_content" 9 android:orientation="horizontal" > 10 11 <LinearLayout 12 android:layout_width="match_parent" 13 android:layout_height="wrap_content" 14 android:layout_toLeftOf="@+id/add_quick_command_image" 15 android:orientation="horizontal" > 16 17 <Button 18 android:id="@+id/main_button" 19 style="?android:attr/buttonStyleSmall" 20 android:layout_width="0dp" 21 android:layout_height="wrap_content" 22 android:layout_weight="1" 23 android:text="Main" /> 24 25 <Button 26 android:id="@+id/mod_button" 27 style="?android:attr/buttonStyleSmall" 28 android:layout_width="0dp" 29 android:layout_height="wrap_content" 30 android:layout_weight="1" 31 android:text="Mod" /> 32 </LinearLayout> 33 34 <ImageView 35 android:id="@+id/add_quick_command_image" 36 android:layout_width="30dp" 37 android:layout_height="30dp" 38 android:layout_alignParentRight="true" 39 android:src="@drawable/add" /> 40 </RelativeLayout> 41 42 <LinearLayout 43 android:id="@+id/edit_qc_view" 44 android:layout_width="match_parent" 45 android:layout_height="wrap_content" 46 android:background="@drawable/layout_sel_background" 47 android:orientation="vertical" 48 android:visibility="gone" > 49 50 <TableLayout 51 android:layout_width="match_parent" 52 android:layout_height="wrap_content" > 53 54 <TableRow 55 android:layout_width="match_parent" 56 android:layout_height="wrap_content" > 57 58 <TextView 59 android:layout_width="wrap_content" 60 android:layout_height="wrap_content" 61 android:text="Name" 62 android:textAppearance="?android:attr/textAppearanceLarge" /> 63 64 <EditText 65 android:id="@+id/name_edittext" 66 android:layout_width="match_parent" 67 android:layout_height="wrap_content" 68 android:layout_weight="1" 69 android:singleLine="true" > 70 </EditText> 71 </TableRow> 72 73 <TableRow 74 android:layout_width="match_parent" 75 android:layout_height="wrap_content" > 76 77 <TextView 78 android:layout_width="wrap_content" 79 android:layout_height="wrap_content" 80 android:text="Command" 81 android:textAppearance="?android:attr/textAppearanceLarge" /> 82 83 <EditText 84 android:id="@+id/command_edittext" 85 android:layout_width="match_parent" 86 android:layout_height="wrap_content" 87 android:layout_weight="1" 88 android:singleLine="true" > 89 </EditText> 90 </TableRow> 91 92 <TableRow 93 android:layout_width="match_parent" 94 android:layout_height="wrap_content" > 95 96 <Button 97 android:id="@+id/cancel_button" 98 android:layout_width="0dp" 99 android:layout_height="wrap_content" 100 android:layout_weight="1" 101 android:text="Cancel" /> 102 103 <Button 104 android:id="@+id/save_button" 105 android:layout_width="0dp" 106 android:layout_height="wrap_content" 107 android:layout_weight="1" 108 android:text="Save" /> 109 </TableRow> 110 </TableLayout> 111 </LinearLayout> 112 113 <com.mobeta.android.dslv.DragSortListView 114 xmlns:dslv="http://schemas.android.com/apk/res-auto" 115 android:id="@+id/list" 116 android:layout_width="fill_parent" 117 android:layout_height="fill_parent" 118 android:dividerHeight="5dp" 119 dslv:collapsed_height="2dp" 120 dslv:drag_enabled="true" 121 dslv:drag_handle_id="@+id/quick_command_drag_image" 122 dslv:drag_scroll_start="0.33" 123 dslv:float_alpha="0.6" 124 dslv:max_drag_scroll_speed="0.5" 125 dslv:slide_shuffle_speed="0.3" 126 dslv:sort_enabled="true" 127 dslv:track_drag_sort="false" 128 dslv:use_default_controller="true" /> 129 130</LinearLayout>