]> gitweb.fperrin.net Git - Dictionary.git/commitdiff
Format dictionary_activity.xml and enable fast scrolling mode.
authorUwe Trottmann <uwe.trottmann@gmail.com>
Tue, 14 Aug 2012 06:38:42 +0000 (08:38 +0200)
committerUwe Trottmann <uwe.trottmann@gmail.com>
Tue, 14 Aug 2012 06:38:42 +0000 (08:38 +0200)
res/layout/dictionary_activity.xml

index 196edf77f099648f6c282f189b6e3750dfe5f1c9..0a070573ffde37952fb9942a1295f62cad5ba145 100644 (file)
@@ -1,78 +1,73 @@
 <?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="fill_parent"
+    android:layout_height="fill_parent"
+    android:orientation="vertical" >
 
-<LinearLayout 
-       xmlns:android="http://schemas.android.com/apk/res/android"
-       android:orientation="vertical" android:layout_width="fill_parent"
-       android:layout_height="fill_parent">
+    <LinearLayout
+        android:id="@+id/SearchBarLinearLayout"
+        android:layout_width="fill_parent"
+        android:layout_height="wrap_content" >
 
-       <LinearLayout 
-               android:id="@+id/SearchBarLinearLayout"
-               android:layout_height="wrap_content"
-               android:layout_width="fill_parent">
-               
-                       <EditText 
-                               android:id="@+id/SearchText"
-                               android:hint="@string/searchText"
-                               android:layout_width="0dip"
-                               android:layout_height="wrap_content" 
-        android:imeOptions="actionSearch|flagNoEnterAction|flagNoExtractUi"
-                               android:layout_weight="1.0" 
-        android:inputType="text"/>
+        <EditText
+            android:id="@+id/SearchText"
+            android:layout_width="0dip"
+            android:layout_height="wrap_content"
+            android:layout_weight="1.0"
+            android:hint="@string/searchText"
+            android:imeOptions="actionSearch|flagNoEnterAction|flagNoExtractUi"
+            android:inputType="text" />
 
-<!--          android:imeOptions="actionSearch|flagNoEnterAction|flagNoExtractUi" -->
-                               
-      <Button 
-        android:id="@+id/ClearSearchTextButton"
-        android:drawableLeft="@drawable/ic_input_delete"
-        android:background="#00000000"
-        android:layout_width="wrap_content"
-        android:layout_height="wrap_content"
-        android:layout_marginRight="15dip"
-        />  <!-- transparent -->
+        <Button
+            android:id="@+id/ClearSearchTextButton"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_marginRight="15dip"
+            android:background="#00000000"
+            android:drawableLeft="@drawable/ic_input_delete" />
+        <!-- transparent -->
 
-                       <Button 
-                               android:id="@+id/LangButton"
-                               android:text=""
-                               android:minWidth="50dip"
-        android:maxLines="1"
-                               android:layout_width="wrap_content"
-                               android:layout_height="wrap_content"
-                               />
-                               
-                       <Button
-                   android:id="@+id/DownButton"
-        android:drawableLeft="@drawable/arrow_down_float"
-        android:background="#00000000"
-        android:minWidth="30dip" 
-        android:minHeight="30dip"
-                   android:layout_width="wrap_content"
-                   android:layout_height="wrap_content"
-          />
-                               
-                       <Button 
-                               android:id="@+id/UpButton"
-        android:drawableLeft="@drawable/arrow_up_float"
-        android:background="#00000000"
-        android:minWidth="30dip"
-        android:minHeight="30dip"
-                               android:layout_width="wrap_content"
-                               android:layout_height="wrap_content" 
-                               />
-               
-       </LinearLayout>
+        <Button
+            android:id="@+id/LangButton"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:maxLines="1"
+            android:minWidth="50dip"
+            android:text="" />
 
-       <ListView 
-               android:id="@id/android:list" 
-               android:layout_width="fill_parent"
-               android:layout_height="fill_parent" 
-               android:choiceMode="singleChoice"
-               android:clickable="true" 
-               android:focusableInTouchMode="true"
-               android:focusable="true"/>
-  <TextView android:id="@android:id/empty"
-    android:layout_width="match_parent"
-    android:layout_height="match_parent"
-    android:text="@string/noSearchResults"/>
+        <Button
+            android:id="@+id/DownButton"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:background="#00000000"
+            android:drawableLeft="@drawable/arrow_down_float"
+            android:minHeight="30dip"
+            android:minWidth="30dip" />
 
-</LinearLayout>
+        <Button
+            android:id="@+id/UpButton"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:background="#00000000"
+            android:drawableLeft="@drawable/arrow_up_float"
+            android:minHeight="30dip"
+            android:minWidth="30dip" />
+    </LinearLayout>
+
+    <ListView
+        android:id="@id/android:list"
+        android:layout_width="fill_parent"
+        android:layout_height="fill_parent"
+        android:choiceMode="singleChoice"
+        android:clickable="true"
+        android:fastScrollEnabled="true"
+        android:focusable="true"
+        android:focusableInTouchMode="true" />
+
+    <TextView
+        android:id="@android:id/empty"
+        android:layout_width="match_parent"
+        android:layout_height="match_parent"
+        android:text="@string/noSearchResults" />
+
+</LinearLayout>
\ No newline at end of file