Umm, you call setInputType with flags according to this:

http://developer.android.com/reference/android/text/InputType.html

InputType.TYPE_CLASS_TEXT
    | InputType.TYPE_TEXT_FLAG_MULTI_LINE
    | InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS

seems about right.

-- Kostya

09.02.2011 21:27, André пишет:
Thanks Kostya

How do I do that in java? Since I want it to be an option.

On Feb 9, 7:24 pm, Kostya Vasilyev<[email protected]>  wrote:
Andre,

This works for me:

android:inputType="text|textMultiLine|textNoSuggestions|textCapSentences"

on a Motorola Milestone with the "Motorola Keyboard", but still gives
suggestions with the "Mobidiv Keyboard".

So it looks to be up to the IME to respect that flag, and if it ignores
it, then well, it ignores it.

-- Kostya

09.02.2011 20:54, André пишет:

I have an edittext where i want the user to have the choice to turn
off the autosuggest when typing. I tried to change the inputType but
it only changed the edittext to singel line edittext which I don't
want even when I included
android.text.InputType.TYPE_TEXT_FLAG_MULTI_LINE.
Any suggestions of how to do that?
//André
--
Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com


--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to