]> gitweb.fperrin.net Git - Dictionary.git/blob - res/layout/dictionary_activity.xml
Use ImageButton for up and down, make them finger-friendly.
[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:padding="@dimen/default_padding"
35             android:src="@drawable/ic_input_delete" />
36
37         <ImageButton
38             android:id="@+id/DownButton"
39             style="@style/BorderlessButton"
40             android:layout_width="48dp"
41             android:layout_height="48dp"
42             android:src="@drawable/arrow_down_float" />
43
44         <ImageButton
45             android:id="@+id/UpButton"
46             style="@style/BorderlessButton"
47             android:layout_width="48dp"
48             android:layout_height="48dp"
49             android:src="@drawable/arrow_up_float" />
50     </LinearLayout>
51
52     <ListView
53         android:id="@id/android:list"
54         android:layout_width="fill_parent"
55         android:layout_height="fill_parent"
56         android:choiceMode="singleChoice"
57         android:clickable="true"
58         android:fastScrollEnabled="true"
59         android:focusable="true"
60         android:focusableInTouchMode="true" />
61
62     <TextView
63         android:id="@android:id/empty"
64         android:layout_width="match_parent"
65         android:layout_height="match_parent"
66         android:text="@string/noSearchResults" />
67
68 </LinearLayout>