How to turnoff suggestions in edittext in android?
A:
android:inputType="textNoSuggestions"
. See the xml attribute documentation and this Android developers blog post.
Yoni Samlan
2010-09-24 18:42:29
Thankyou for your answer. But i an dynamically reating the edittext i want to do the same in java code.Please help me.
Jim
2010-09-25 05:15:36
Tseng above has it right -- most Android xml-settable attributes have matching set[attributeName] methods, in this case setInputType.
Yoni Samlan
2010-09-27 15:18:10
A:
It's already described in the link Yoni Samlan posted. You should read the documentation correctly ;)
There is a method called setInputType. All you need is to call it with
edittext.setInputType(InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS);
Tseng
2010-09-25 17:26:13
A:
Hi there, this works on the native android keyboard... it didn't work on the default "Standard Keyboard" that comes with the Xperia X10... is there any way to disable suggestions on that keyboard?
Shatazone
2010-10-21 10:12:44