Disabling Android O auto-fill service for an application

后端 未结 10 1757
死守一世寂寞
死守一世寂寞 2020-11-27 05:13

Android O has the feature to support Auto-filling for fields. Is there any way I can disable it for a specific application. That is I want to force my application not to use

10条回答
  •  旧巷少年郎
    2020-11-27 05:43

    Create custom EditText style and set android:importantForAutofill to no.

    
    

    Then in your activity theme set this style for editTextStyle.

    @style/EditTextStyleWithoutAutoFill
    

提交回复
热议问题