]> gitweb.fperrin.net Git - Dictionary.git/blob - res/layout/dictionary_activity.xml
5e88bd7f6b1e79fe8c36ec9d6ffdd8a412a6cdd0
[Dictionary.git] / res / layout / dictionary_activity.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"
3     android:layout_width="fill_parent"
4     android:layout_height="fill_parent"
5     android:orientation="vertical" >
6
7     <!--
8
9     <LinearLayout
10         android:id="@+id/SearchBarLinearLayout"
11         android:layout_width="fill_parent"
12         android:layout_height="wrap_content" >
13
14         <Button
15             android:id="@+id/LangButton"
16             android:layout_width="wrap_content"
17             android:layout_height="wrap_content"
18             android:maxLines="1"
19             android:minWidth="50dip"
20             android:text="" />
21
22         <EditText
23             android:id="@+id/SearchText"
24             android:layout_width="0dip"
25             android:layout_height="wrap_content"
26             android:layout_weight="1.0"
27             android:hint="@string/searchText"
28             android:imeOptions="actionSearch|flagNoEnterAction|flagNoExtractUi"
29             android:inputType="text" />
30
31         <ImageButton
32             android:id="@+id/ClearSearchTextButton"
33             style="@style/BorderlessButton"
34             android:layout_width="wrap_content"
35             android:layout_height="wrap_content"
36             android:src="@drawable/ic_input_delete" />
37
38     </LinearLayout>
39
40  -->
41
42     <ListView
43         android:id="@id/android:list"
44         android:layout_width="fill_parent"
45         android:layout_height="fill_parent"
46         android:nextFocusRight="@+id/floatSearchButton"
47         android:choiceMode="singleChoice"
48         android:clickable="true"
49         android:fastScrollEnabled="true"
50         android:focusable="true"
51         android:focusableInTouchMode="true" />
52
53      <!-- force fabSize to mini, otherwise it is normal on some
54           phones and mini on others, with not particular sense to it.
55           Also leaves more space for content. -->
56      <android.support.design.widget.FloatingActionButton
57         android:id="@+id/floatSwapButton"
58         app:fabSize="mini"
59         app:useCompatPadding="true"
60         android:layout_alignParentBottom="true"
61         android:layout_alignParentRight="true"
62         android:layout_width="wrap_content"
63         android:layout_height="wrap_content"
64         android:onClick="onLanguageButtonClick"
65         android:src="@drawable/ic_swap_horiz_black_24dp" />
66
67      <android.support.design.widget.FloatingActionButton
68         android:id="@+id/floatSearchButton"
69         app:fabSize="mini"
70         app:useCompatPadding="true"
71         android:layout_toLeftOf="@+id/floatSwapButton"
72         android:layout_alignParentBottom="true"
73         android:layout_width="wrap_content"
74         android:layout_height="wrap_content"
75         android:nextFocusLeft="@id/android:list"
76         android:onClick="onSearchButtonClick"
77         android:src="@drawable/ic_search_black_24dp" />
78
79     <TextView
80         android:id="@android:id/empty"
81         android:layout_width="match_parent"
82         android:layout_height="match_parent"
83         android:text="@string/noSearchResults" />
84
85 </RelativeLayout>