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