Android Oreo disable autofill for EditText

前端 未结 2 1897
忘了有多久
忘了有多久 2021-01-17 22:36

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

相关标签:
2条回答
  • 2021-01-17 22:58

    you can pass "no" importantAuroFill e.g.

    <TextView
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:importantForAutofill="no" />
    
    0 讨论(0)
  • 2021-01-17 23:03

    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

    0 讨论(0)
提交回复
热议问题