mirror of
http://galexander.org/git/simplesshd.git
synced 2025-01-03 19:50:55 +00:00
make it so nextFocusUp/Down specify a convenient order for visiting all
of the buttons (the defaults worked for most of them)
This commit is contained in:
parent
edd7bb4bbc
commit
6a61e61a74
@ -40,6 +40,8 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="0"
|
android:layout_weight="0"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
|
android:nextFocusDown="@+id/option1"
|
||||||
|
android:nextFocusUp="@+id/option5"
|
||||||
android:text="Start"
|
android:text="Start"
|
||||||
android:onClick="startstop_clicked" />
|
android:onClick="startstop_clicked" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
@ -49,6 +51,7 @@
|
|||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:layout_height="fill_parent">
|
android:layout_height="fill_parent">
|
||||||
<Button style="@style/tv_button" android:id="@+id/option1"
|
<Button style="@style/tv_button" android:id="@+id/option1"
|
||||||
|
android:nextFocusUp="@+id/startstop"
|
||||||
android:text="Settings"
|
android:text="Settings"
|
||||||
android:onClick="settings_clicked" />
|
android:onClick="settings_clicked" />
|
||||||
<Button style="@style/tv_button" android:id="@+id/option2"
|
<Button style="@style/tv_button" android:id="@+id/option2"
|
||||||
@ -61,6 +64,7 @@
|
|||||||
android:text="Documentation"
|
android:text="Documentation"
|
||||||
android:onClick="doc_clicked" />
|
android:onClick="doc_clicked" />
|
||||||
<Button style="@style/tv_button" android:id="@+id/option5"
|
<Button style="@style/tv_button" android:id="@+id/option5"
|
||||||
|
android:nextFocusDown="@+id/startstop"
|
||||||
android:text="About"
|
android:text="About"
|
||||||
android:onClick="about_clicked" />
|
android:onClick="about_clicked" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
Loading…
Reference in New Issue
Block a user