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" >
10 android:id="@+id/SearchBarLinearLayout"
11 android:layout_width="fill_parent"
12 android:layout_height="wrap_content" >
15 android:id="@+id/LangButton"
16 android:layout_width="wrap_content"
17 android:layout_height="wrap_content"
19 android:minWidth="50dip"
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" />
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" />
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" />
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"
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" />
67 <android.support.design.widget.FloatingActionButton
68 android:id="@+id/floatSearchButton"
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" />
80 android:id="@android:id/empty"
81 android:layout_width="match_parent"
82 android:layout_height="match_parent"
83 android:text="@string/noSearchResults" />