0

How do you disable the autocorrection/autosuggestion features in a multilined EditText?

I tried:

EditText without auto-correction, etc

Android: Multiline & No autosuggest in EditText

How can I turnoff suggestions in EditText?

How to set multiline,firstletter caps and disable suggestions on edittext

How can I turnoff suggestions in EditText?

None of the mentioned methods like "textFilter|textMultiLine|textNoSuggestions" (in any combination) worked, neither declared in XML nor programmatically changed. It seems that the EditText-box takes either multiline or turned-off suggestions, but not both at the same time.

I think it is important to know that I'm using the HTC Desire HD with Android 2.3.3. I don't have any other device to test this.

Is this behaviour inherent to the HTC Sense UI?

Any ideas?

Community
  • 1
  • 1
Martin
  • 183
  • 8
  • Are you using the Android vanilla keyboard or custom soft keyboard? – Dan S Oct 14 '11 at 07:47
  • It's the vanilla keyboard from the Sense UI. Didn't change anything. Just a note: It has the german locale. – Martin Oct 14 '11 at 07:50
  • I was just thinking the soft keyboard may not be respecting these parameters. – Dan S Oct 14 '11 at 07:53
  • what if you turn off the Prediction setting - Settings->Language & Keyboard -> Touch Input -> Text Input -> Prediction. If works, try to disable this somehow in your app... I haven't tried it so far... – mihail Oct 14 '11 at 08:26
  • I'Ve tried this and it works. But I didn't find a way to change those settings programmatically yet... – Martin Oct 14 '11 at 08:57
  • just a suggestion - try to use the manifest feature android:configChanges="keyboard" and android:configChanges="keyboardHidden" :) good luck – mihail Oct 14 '11 at 12:34
  • Try this: http://code.google.com/p/android/issues/detail?id=21029 – Sagar Waghmare Jan 15 '14 at 13:40

1 Answers1

0

The inputType tag that you specify in EditText for MultiLine and NoSuggestions are flags that can be ignored by the system depending on its preferences.

But, I can confirm that android:inputType="textNoSuggestions|textMultiLine" in the EditText XML works perfectly fine in Nexus and Motorola smartphones. So am guessing its due to your test device preferences that you are facing this problem.

Kaushik NP
  • 6,733
  • 9
  • 31
  • 60