]> gitweb.fperrin.net Git - Dictionary.git/blob - res/layout/dictionary_activity.xml
d21b74394299f90a2aceef16cb449676232ec9cf
[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         <Button
13             android:id="@+id/LangButton"
14             android:layout_width="wrap_content"
15             android:layout_height="wrap_content"
16             android:maxLines="1"
17             android:minWidth="50dip"
18             android:text="" />
19
20         <EditText
21             android:id="@+id/SearchText"
22             android:layout_width="0dip"
23             android:layout_height="wrap_content"
24             android:layout_weight="1.0"
25             android:hint="@string/searchText"
26             android:imeOptions="actionSearch|flagNoEnterAction|flagNoExtractUi"
27             android:inputType="text" />
28
29         <ImageButton
30             android:id="@+id/ClearSearchTextButton"
31             style="@style/BorderlessButton"
32             android:layout_width="wrap_content"
33             android:layout_height="wrap_content"
34             android:src="@drawable/ic_input_delete" />
35
36     </LinearLayout>
37
38     <ListView
39         android:id="@id/android:list"
40         android:layout_width="fill_parent"
41         android:layout_height="fill_parent"
42         android:choiceMode="singleChoice"
43         android:clickable="true"
44         android:fastScrollEnabled="true"
45         android:focusable="true"
46         android:focusableInTouchMode="true" />
47
48     <TextView
49         android:id="@android:id/empty"
50         android:layout_width="match_parent"
51         android:layout_height="match_parent"
52         android:text="@string/noSearchResults" />
53
54 </LinearLayout>