- <LinearLayout
- android:id="@+id/SearchBarLinearLayout"
- android:layout_height="wrap_content"
- android:layout_width="fill_parent">
-
- <EditText
- android:id="@+id/SearchText"
- android:hint="@string/searchText"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:imeOptions="actionSearch|flagNoEnterAction|flagNoExtractUi"
- android:layout_weight="1.0"
- android:inputType="text"/>
-
-<!-- android:imeOptions="actionSearch|flagNoEnterAction|flagNoExtractUi" -->
-
- <Button
- android:id="@+id/ClearSearchTextButton"
- android:text="<x"
- android:minWidth="50dip"
+ <!-- force fabSize to mini, otherwise it is normal on some
+ phones and mini on others, with not particular sense to it.
+ Also leaves more space for content. -->
+ <android.support.design.widget.FloatingActionButton
+ android:id="@+id/floatSwapButton"
+ app:fabSize="mini"
+ app:useCompatPadding="true"
+ android:layout_alignParentBottom="true"
+ android:layout_alignParentRight="true"