问题
How to disable Keyboard cache in Android programmatically for sensitive input fields?
回答1:
android:inputType="password"
doesn't cache
回答2:
To disable to Edittext
suggestions
android:inputType="textNoSuggestions"
回答3:
I'm guessing the best would be:
inputType="textVisiblePassword"
An overview is provided at: Difference between android:inputType="textPassword", "textVisiblePassword","textWebPassword" and "numberPassword" in android?
(For different inputtypes: https://developer.android.com/reference/android/R.styleable.html?hl=en#TextView_inputType)
来源:https://stackoverflow.com/questions/38369578/disable-keyboard-cache-android-programmatically