]> gitweb.fperrin.net Git - Dictionary.git/blobdiff - res/layout/dictionary_manager_activity.xml
Picking back up in the middle of a major refactoring of the UI, tyring
[Dictionary.git] / res / layout / dictionary_manager_activity.xml
index b6f67f9b5dc06c325053a9ebdf340edcae627acd..b808593d986c900dbbc6c7fd62f43cf8073aa37d 100644 (file)
@@ -1,10 +1,9 @@
 <?xml version="1.0" encoding="utf-8"?>
-
-<LinearLayout 
-       xmlns:android="http://schemas.android.com/apk/res/android"
-       android:orientation="vertical" 
- android:layout_width="fill_parent"
-       android:layout_height="fill_parent">
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:tools="http://schemas.android.com/tools"
+    android:layout_width="fill_parent"
+    android:layout_height="fill_parent"
+    android:orientation="vertical" >
 
     <LinearLayout
         android:id="@+id/linearLayout1"
             android:layout_weight="1"
             android:hint="@string/managerFilterText" />
 
-        <CheckBox
-            android:id="@+id/showLocal"
+        <ImageButton
+            android:id="@+id/ClearSearchTextButton"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:layout_weight="0"
-            android:text="@string/managerFilterCheckbox" />
+            android:src="@android:drawable/ic_input_delete" 
+            android:contentDescription="@string/clearSearchText"/>
+
+        <ToggleButton
+            android:id="@+id/showLocal"
+            android:layout_width="wrap_content"
+            android:layout_height="fill_parent"
+            android:layout_weight="0"
+            android:textOff="@string/managerFilterCheckboxAll"
+            android:textOn="@string/managerFilterCheckboxLocal" />
 
     </LinearLayout>
 
-       <ListView 
-               android:id="@id/android:list" 
-               android:layout_width="fill_parent"
-               android:layout_height="0dip" 
-               android:choiceMode="singleChoice"
-               android:clickable="true" 
-               android:focusable="true"
-    android:layout_weight="1.0"
-    />
-
-   <TextView 
-     android:id="@+id/DictionaryListHeader"
-     android:hint="@string/helpText"
-     android:layout_width="fill_parent"
-     android:layout_height="wrap_content"/>
-
-</LinearLayout>
+    <ListView
+        android:id="@id/android:list"
+        android:layout_width="fill_parent"
+        android:layout_height="0dip"
+        android:layout_weight="1.0"
+        android:choiceMode="singleChoice"
+        android:clickable="true"
+        android:fastScrollEnabled="true"
+        android:focusable="true"
+        tools:listitem="@layout/dictionary_manager_row" />
+
+    <TextView
+        android:id="@+id/DictionaryListHeader"
+        android:layout_width="fill_parent"
+        android:layout_height="wrap_content"
+        android:hint="@string/helpText" />
+
+</LinearLayout>
\ No newline at end of file