Android Oreo禁用EditText自动填充 [英] Android Oreo disable autofill for EditText
本文介绍了Android Oreo禁用EditText自动填充的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试对除登录屏幕以外的所有 EditText
禁用自动填充.还没有成功.在 editText
上的 longPress
之后,总会有自动填充"选项.对于 rootView
的IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS或对于View的IMPORTANT_FOR_AUTOFILL_NO根本没有任何作用.
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.
有什么想法吗?谢谢.
推荐答案
也许您遇到的问题与我相同我混合了建议和自动填充功能,然后将 importantForAutofill 设置为false,一切都很好
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
这篇关于Android Oreo禁用EditText自动填充的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文