Andrew Mackenzie
Andrew Mackenzie

Reputation: 5737

Can I disable SpellChecking on specific Spans in EditText

I am extending EditText and add special words to the text from a list, programmatically. I am adding the text and also a Span (BackgroundColorSpan, ClickableSpan, etc to show them as different and make them clickable.

Is there any way I can disable spellcheck on a particular word or Span in my EditText/Editable?

Upvotes: 4

Views: 873

Answers (1)

Nirav Tukadiya
Nirav Tukadiya

Reputation: 3417

to Disable spell checking you have to specify the EditText's InputType in your XML file as the following:

 android:inputType="textNoSuggestions"

Upvotes: 2

Related Questions