11

I'm trying to disable autofill for all EditText's except my login screen. And no success yet. There is always "Autofill" option after longPress on editText. IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS for rootView or IMPORTANT_FOR_AUTOFILL_NO for view gives no effect at all.

Any ideas? Thanks.

Ratilal Chopda
  • 4,162
  • 4
  • 18
  • 31
Kuva
  • 2,387
  • 4
  • 15
  • 20

2 Answers2

12

you can pass "no" to importantForAutofill e.g.

<EditText
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  android:importantForAutofill="no" />
aliraza12636
  • 395
  • 3
  • 16
8

maybe you have the same problem as I had I mixed-up suggestion and auto-fill, then I set importantForAutofill to false and everything was fine

Kostya Rudenko
  • 475
  • 4
  • 19