diff options
| author | Felipe Leme <felipeal@google.com> | 2017-11-02 13:50:42 -0700 |
|---|---|---|
| committer | Felipe Leme <felipeal@google.com> | 2017-11-08 12:53:55 -0800 |
| commit | e47849665c82eb683d195c7d020dcda0bd8bfb00 (patch) | |
| tree | 0f8b59424b89411be2ba98f45525fa4c686fc911 /samples/ApiDemos | |
| parent | 66fbd5f85bd0c2e231d068907a53be2c71c55359 (diff) | |
| download | android_development-e47849665c82eb683d195c7d020dcda0bd8bfb00.tar.gz android_development-e47849665c82eb683d195c7d020dcda0bd8bfb00.tar.bz2 android_development-e47849665c82eb683d195c7d020dcda0bd8bfb00.zip | |
Added autofill tags on dialog sample.
Bug: 68816440
Test: mmm -j50 development/samples/ApiDemos && adb install -r $OUT/data/app/ApiDemos/ApiDemos.apk
Change-Id: Ia7514ba3edb7e057fe8490079856d0a233c77fcd
Diffstat (limited to 'samples/ApiDemos')
| -rw-r--r-- | samples/ApiDemos/res/layout/alert_dialog.xml | 4 | ||||
| -rw-r--r-- | samples/ApiDemos/res/layout/alert_dialog_text_entry.xml | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/samples/ApiDemos/res/layout/alert_dialog.xml b/samples/ApiDemos/res/layout/alert_dialog.xml index deb712a79..85786bf1c 100644 --- a/samples/ApiDemos/res/layout/alert_dialog.xml +++ b/samples/ApiDemos/res/layout/alert_dialog.xml @@ -19,7 +19,9 @@ <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/screen" android:layout_width="match_parent" android:layout_height="match_parent" - android:orientation="vertical"> + android:orientation="vertical" + android:importantForAutofill="noExcludeDescendants" + > <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> diff --git a/samples/ApiDemos/res/layout/alert_dialog_text_entry.xml b/samples/ApiDemos/res/layout/alert_dialog_text_entry.xml index 61bd3f53c..8e223d1bc 100644 --- a/samples/ApiDemos/res/layout/alert_dialog_text_entry.xml +++ b/samples/ApiDemos/res/layout/alert_dialog_text_entry.xml @@ -37,7 +37,8 @@ android:autoText="false" android:capitalize="none" android:gravity="fill_horizontal" - android:textAppearance="?android:attr/textAppearanceMedium" /> + android:textAppearance="?android:attr/textAppearanceMedium" + android:autofillHints="username"/> <TextView android:id="@+id/password_view" @@ -56,6 +57,7 @@ android:capitalize="none" android:gravity="fill_horizontal" android:password="true" - android:textAppearance="?android:attr/textAppearanceMedium" /> + android:textAppearance="?android:attr/textAppearanceMedium" + android:autofillHints="password"/> </LinearLayout> |
