]> gitweb.fperrin.net Git - Dictionary.git/blobdiff - res/layout/dictionary_activity.xml
Some improvements to keyboard navigation.
[Dictionary.git] / res / layout / dictionary_activity.xml
index e758e8d90f23d32909e8146e201d4e348a6bbfd9..5e88bd7f6b1e79fe8c36ec9d6ffdd8a412a6cdd0 100644 (file)
@@ -43,6 +43,7 @@
         android:id="@id/android:list"
         android:layout_width="fill_parent"
         android:layout_height="fill_parent"
+        android:nextFocusRight="@+id/floatSearchButton"
         android:choiceMode="singleChoice"
         android:clickable="true"
         android:fastScrollEnabled="true"
@@ -60,6 +61,7 @@
         android:layout_alignParentRight="true"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
+        android:onClick="onLanguageButtonClick"
         android:src="@drawable/ic_swap_horiz_black_24dp" />
 
      <android.support.design.widget.FloatingActionButton
@@ -70,6 +72,8 @@
         android:layout_alignParentBottom="true"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
+        android:nextFocusLeft="@id/android:list"
+        android:onClick="onSearchButtonClick"
         android:src="@drawable/ic_search_black_24dp" />
 
     <TextView