]> gitweb.fperrin.net Git - Dictionary.git/blob - res/layout/dictionary_activity.xml
Accessibility fixes.
[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:importantForAccessibility="no"
26         android:layout_alignParentBottom="true"
27         android:layout_alignParentRight="true"
28         android:layout_width="wrap_content"
29         android:layout_height="wrap_content"
30         android:onClick="onLanguageButtonClick"
31         android:src="@drawable/ic_swap_horiz_black_24dp" />
32
33      <android.support.design.widget.FloatingActionButton
34         android:id="@+id/floatSearchButton"
35         app:fabSize="mini"
36         app:useCompatPadding="true"
37         android:importantForAccessibility="no"
38         android:layout_toLeftOf="@+id/floatSwapButton"
39         android:layout_alignParentBottom="true"
40         android:layout_width="wrap_content"
41         android:layout_height="wrap_content"
42         android:nextFocusLeft="@id/android:list"
43         android:onClick="onSearchButtonClick"
44         android:src="@drawable/ic_search_black_24dp" />
45
46     <TextView
47         android:id="@android:id/empty"
48         android:layout_width="match_parent"
49         android:layout_height="match_parent"
50         android:text="@string/noSearchResults" />
51
52 </RelativeLayout>