Disable autosuggestion/autocomplete on editText without using Visible Password method

故事扮演 提交于 2019-12-11 01:53:15

问题


I'm trying to disable auto-complete on my editText and I've tried the following methods:

android:inputType="textFilter" //doesn't work

or

android:inputType="textNoSuggestions"   // doesn't work

or

myedittext.setInputType(InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS); // doesn't work

or

myedittext.setInputType(InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD); // doesn't work

or

android:inputType="textVisiblePassword" //it does work, but I can't toggle kanji
//if I use Japanese characters, so I'd like another method please...

Since the editText is supposed to work for both english and japanese alphabets/characters, the last method doesn't really cut it out for me because I can't toggle the Japanese characters (they have like three alphabet systems so there is a need to toggle...)

Is there a method that would work please? Thank you.

来源:https://stackoverflow.com/questions/21914768/disable-autosuggestion-autocomplete-on-edittext-without-using-visible-password-m

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!