From 6a61e61a7477f1f47147a1de32e609515ea37c97 Mon Sep 17 00:00:00 2001 From: Greg Alexander Date: Sat, 21 Sep 2019 16:59:43 -0400 Subject: [PATCH] make it so nextFocusUp/Down specify a convenient order for visiting all of the buttons (the defaults worked for most of them) --- app/src/main/res/layout/main_tv.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/res/layout/main_tv.xml b/app/src/main/res/layout/main_tv.xml index 4d3674b..96598de 100644 --- a/app/src/main/res/layout/main_tv.xml +++ b/app/src/main/res/layout/main_tv.xml @@ -40,6 +40,8 @@ android:layout_height="wrap_content" android:layout_weight="0" android:layout_gravity="center" + android:nextFocusDown="@+id/option1" + android:nextFocusUp="@+id/option5" android:text="Start" android:onClick="startstop_clicked" /> @@ -49,6 +51,7 @@ android:layout_weight="1" android:layout_height="fill_parent">