Merge pull request #527 from alexbakker/fix-131

Automatically focus the EditText when showing text/password dialogs
This commit is contained in:
Michael Schättgen 2020-08-01 13:31:07 +02:00 committed by GitHub
commit be0529a0c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 4 deletions

View file

@ -27,7 +27,9 @@
android:hint="@string/password"
android:inputType="textPassword"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
android:layout_height="wrap_content">
<requestFocus/>
</EditText>
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout

View file

@ -9,5 +9,7 @@
<EditText
android:id="@+id/text_input"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
android:layout_height="wrap_content">
<requestFocus/>
</EditText>
</LinearLayout>