9

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,113
  • 4
  • 17
  • 29
Kuva
  • 2,317
  • 2
  • 14
  • 19

2 Answers2

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
  • 445
  • 4
  • 19
6

you can pass "no" importantAuroFill e.g.

<EditText
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  android:importantForAutofill="no" />
aliraza12636
  • 265
  • 2
  • 13