]> gitweb.fperrin.net Git - Dictionary.git/blob - res/layout/dictionary_activity.xml
Remove unused images and XML sections.
[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     <ListView
8         android:id="@id/android:list"
9         android:layout_width="fill_parent"
10         android:layout_height="fill_parent"
11         android:nextFocusRight="@+id/floatSearchButton"
12         android:choiceMode="singleChoice"
13         android:clickable="true"
14         android:fastScrollEnabled="true"
15         android:focusable="true"
16         android:focusableInTouchMode="true" />
17
18      <!-- force fabSize to mini, otherwise it is normal on some
19           phones and mini on others, with not particular sense to it.
20           Also leaves more space for content. -->
21      <android.support.design.widget.FloatingActionButton
22         android:id="@+id/floatSwapButton"
23         app:fabSize="mini"
24         app:useCompatPadding="true"
25         android:layout_alignParentBottom="true"
26         android:layout_alignParentRight="true"
27         android:layout_width="wrap_content"
28         android:layout_height="wrap_content"
29         android:onClick="onLanguageButtonClick"
30         android:src="@drawable/ic_swap_horiz_black_24dp" />
31
32      <android.support.design.widget.FloatingActionButton
33         android:id="@+id/floatSearchButton"
34         app:fabSize="mini"
35         app:useCompatPadding="true"
36         android:layout_toLeftOf="@+id/floatSwapButton"
37         android:layout_alignParentBottom="true"
38         android:layout_width="wrap_content"
39         android:layout_height="wrap_content"
40         android:nextFocusLeft="@id/android:list"
41         android:onClick="onSearchButtonClick"
42         android:src="@drawable/ic_search_black_24dp" />
43
44     <TextView
45         android:id="@android:id/empty"
46         android:layout_width="match_parent"
47         android:layout_height="match_parent"
48         android:text="@string/noSearchResults" />
49
50 </RelativeLayout>