]> gitweb.fperrin.net Git - Dictionary.git/blob - res/layout/dictionary_activity.xml
More space between clear button.
[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         android:layout_marginRight="15dip"
31         />  <!-- transparent -->
32
33                         <Button 
34                                 android:id="@+id/LangButton"
35                                 android:text=""
36                                 android:minWidth="50dip"
37         android:maxLines="1"
38                                 android:layout_width="wrap_content"
39                                 android:layout_height="wrap_content"
40                                 />
41                                 
42                         <Button
43                     android:id="@+id/DownButton"
44         android:drawableLeft="@drawable/arrow_down_float"
45         android:background="#00000000"
46         android:minWidth="30dip" 
47         android:minHeight="30dip"
48                     android:layout_width="wrap_content"
49                     android:layout_height="wrap_content"
50           />
51                                 
52                         <Button 
53                                 android:id="@+id/UpButton"
54         android:drawableLeft="@drawable/arrow_up_float"
55         android:background="#00000000"
56         android:minWidth="30dip"
57         android:minHeight="30dip"
58                                 android:layout_width="wrap_content"
59                                 android:layout_height="wrap_content" 
60                                 />
61                 
62         </LinearLayout>
63
64         <ListView 
65                 android:id="@id/android:list" 
66                 android:layout_width="fill_parent"
67                 android:layout_height="fill_parent" 
68                 android:choiceMode="singleChoice"
69                 android:clickable="true" 
70                 android:focusableInTouchMode="true"
71                 android:focusable="true"/>
72  
73   <TextView android:id="@android:id/empty"
74     android:layout_width="match_parent"
75     android:layout_height="match_parent"
76     android:text="@string/noSearchResults"/>
77
78 </LinearLayout>