tags:

views:

44

answers:

3

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
Thankyou for your answer. But i an dynamically reating the edittext i want to do the same in java code.Please help me.
Jim
Tseng above has it right -- most Android xml-settable attributes have matching set[attributeName] methods, in this case setInputType.
Yoni Samlan
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
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