]> gitweb.fperrin.net Git - Dictionary.git/blob - res/layout/dictionary_activity.xml
Faster multi search, exact search, moved Normalization around.
[Dictionary.git] / res / layout / dictionary_activity.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <LinearLayout 
4         xmlns:android="http://schemas.android.com/apk/res/android"
5         android:orientation="vertical" android:layout_width="fill_parent"
6         android:layout_height="fill_parent">
7
8         <LinearLayout 
9                 android:id="@+id/SearchBarLinearLayout"
10                 android:layout_height="wrap_content"
11                 android:layout_width="fill_parent">
12                 
13                         <EditText 
14                                 android:id="@+id/SearchText"
15                                 android:hint="@string/searchText"
16                                 android:layout_width="0dip"
17                                 android:layout_height="wrap_content" 
18         android:imeOptions="actionSearch|flagNoEnterAction|flagNoExtractUi"
19                                 android:layout_weight="1.0" 
20         android:inputType="text"/>
21
22 <!--          android:imeOptions="actionSearch|flagNoEnterAction|flagNoExtractUi" -->
23                                 
24       <Button 
25         android:id="@+id/ClearSearchTextButton"
26         android:drawableLeft="@drawable/ic_input_delete"
27         android:background="#00000000"
28         android:layout_width="wrap_content"
29         android:layout_height="wrap_content"
30         />  <!-- transparent -->
31
32                         <Button 
33                                 android:id="@+id/LangButton"
34                                 android:text=""
35                                 android:minWidth="50dip"
36         android:maxLines="1"
37                                 android:layout_width="wrap_content"
38                                 android:layout_height="wrap_content"
39                                 />
40                                 
41                         <Button
42                     android:id="@+id/DownButton"
43         android:drawableLeft="@drawable/arrow_down_float"
44         android:background="#00000000"
45         android:minWidth="30dip" 
46         android:minHeight="30dip"
47                     android:layout_width="wrap_content"
48                     android:layout_height="wrap_content"
49           />
50                                 
51                         <Button 
52                                 android:id="@+id/UpButton"
53         android:drawableLeft="@drawable/arrow_up_float"
54         android:background="#00000000"
55         android:minWidth="30dip"
56         android:minHeight="30dip"
57                                 android:layout_width="wrap_content"
58                                 android:layout_height="wrap_content" 
59                                 />
60                 
61         </LinearLayout>
62
63         <ListView 
64                 android:id="@id/android:list" 
65                 android:layout_width="fill_parent"
66                 android:layout_height="fill_parent" 
67                 android:choiceMode="singleChoice"
68                 android:clickable="true" 
69                 android:focusableInTouchMode="true"
70                 android:focusable="true"/>
71  
72   <TextView android:id="@android:id/empty"
73     android:layout_width="match_parent"
74     android:layout_height="match_parent"
75     android:text="@string/noSearchResults"/>
76
77 </LinearLayout>