aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorHarsh Shandilya <msfjarvis@gmail.com>2020-05-28 16:54:33 +0530
committerGitHub <noreply@github.com>2020-05-28 16:54:33 +0530
commitffcbabc2f4ef9766271be5335cec1869fe634646 (patch)
treee861f6062d9df9c4aff0c0aded415a3fe39688e6 /app/src/main/res
parent97911c587754a7c11e594004b77c4ac53af8a468 (diff)
Configure IME options and focus direction (#805)
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/activity_git_clone.xml17
1 files changed, 14 insertions, 3 deletions
diff --git a/app/src/main/res/layout/activity_git_clone.xml b/app/src/main/res/layout/activity_git_clone.xml
index cab9dc7b..6fe19f19 100644
--- a/app/src/main/res/layout/activity_git_clone.xml
+++ b/app/src/main/res/layout/activity_git_clone.xml
@@ -10,6 +10,7 @@
android:layout_height="match_parent"
android:background="?android:attr/windowBackground"
android:padding="@dimen/activity_horizontal_margin"
+ tools:background="@color/white"
tools:context="com.zeapo.pwdstore.git.GitOperationActivity">
<androidx.constraintlayout.widget.ConstraintLayout
@@ -76,7 +77,12 @@
android:id="@+id/server_user"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:inputType="textWebEmailAddress" />
+ android:imeOptions="actionNext"
+ android:inputType="textWebEmailAddress"
+ android:nextFocusForward="@id/server_url">
+
+ <requestFocus />
+ </com.google.android.material.textfield.TextInputEditText>
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
@@ -93,7 +99,9 @@
android:id="@+id/server_url"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:inputType="textWebEmailAddress" />
+ android:imeOptions="actionNext"
+ android:inputType="textWebEmailAddress"
+ android:nextFocusForward="@id/server_port" />
</com.google.android.material.textfield.TextInputLayout>
@@ -112,7 +120,9 @@
android:id="@+id/server_port"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:inputType="number" />
+ android:imeOptions="actionNext"
+ android:inputType="number"
+ android:nextFocusForward="@id/server_path" />
</com.google.android.material.textfield.TextInputLayout>
@@ -129,6 +139,7 @@
android:id="@+id/server_path"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:imeOptions="actionDone"
android:inputType="textWebEmailAddress" />
</com.google.android.material.textfield.TextInputLayout>