Commit f8aabbbd authored by Daniel Wolf's avatar Daniel Wolf

Added more focus options for better navigation with a d-pad

parent 4c62da09
......@@ -73,6 +73,8 @@
android:inputType="numberDecimal"
android:nextFocusUp="@id/dns1"
android:text="@string/default_dns2"
android:nextFocusDown="@id/default_dns_view"
android:nextFocusForward="@id/default_dns_view"
android:textColor="#FFF" />
</com.frostnerd.utils.design.MaterialEditText>
......@@ -83,6 +85,10 @@
android:background="?attr/inputElementColor"
android:clickable="true"
android:focusable="true"
android:focusableInTouchMode="true"
android:nextFocusUp="@id/dns2"
android:nextFocusForward="@id/startStopButton"
android:nextFocusDown="@id/startStopButton"
android:onClick="openDefaultDNSDialog"
android:padding="10dp">
......@@ -165,6 +171,9 @@
style="@style/Widget.AppCompat.Button.Borderless"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:nextFocusUp="@id/default_dns_view"
android:nextFocusForward="@id/dns1"
android:nextFocusDown="@id/dns1"
android:layout_marginTop="15dp"
android:background="?attr/cardColor"
android:text="@string/start"
......
......@@ -63,6 +63,8 @@
android:imeOptions="actionDone"
android:inputType="numberDecimal"
android:nextFocusUp="@id/dns1"
android:nextFocusDown="@id/default_dns_view"
android:nextFocusForward="@id/default_dns_view"
android:text="@string/default_dns2"
android:textColor="#FFF" />
</com.frostnerd.utils.design.MaterialEditText>
......@@ -74,6 +76,10 @@
android:background="?attr/inputElementColor"
android:clickable="true"
android:focusable="true"
android:focusableInTouchMode="true"
android:nextFocusUp="@id/dns2"
android:nextFocusForward="@id/startStopButton"
android:nextFocusDown="@id/startStopButton"
android:onClick="openDefaultDNSDialog"
android:padding="10dp">
......@@ -104,6 +110,9 @@
style="@style/Widget.AppCompat.Button.Borderless"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:nextFocusUp="@id/default_dns_view"
android:nextFocusForward="@id/dns1"
android:nextFocusDown="@id/dns1"
android:layout_marginTop="45dp"
android:background="?attr/cardColor"
android:text="@string/start"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment