Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
Configure IME options and focus direction (#805)
Browse files Browse the repository at this point in the history
  • Loading branch information
Harsh Shandilya authored May 28, 2020
1 parent 97911c5 commit ffcbabc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ All notable changes to this project will be documented in this file.
### Changed
- Reduce Autofill false positives on username fields by removing "name" from list of heuristic terms
- Reduced app size
- Improve IME experience with server config screen

## [1.8.1] - 2020-05-24

Expand Down
17 changes: 14 additions & 3 deletions app/src/main/res/layout/activity_git_clone.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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>

Expand All @@ -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>

Expand All @@ -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>
Expand Down

0 comments on commit ffcbabc

Please sign in to comment.