android:inputType="textNoSuggestions|textVisiblePassword"
This solution works, but you have to be careful with it. You cannot switch the keyboard language on HTC devices (probably the reason is the Sense keyboard) if the textVisiblePassword flag is set .
So I had to install InputType from the code and write something like this:
public static int getInputTypeForNoSuggestsInput() { if (android.os.Build.MANUFACTURER.equalsIgnoreCase("Samsung")) { return InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS | InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD; } else { return InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS; }
macros013
source share