Android Ice Cream Sandwich Edittext: Disabling Spell Check and Word Wrap

前端 未结 7 1813
-上瘾入骨i
-上瘾入骨i 2020-12-23 13:42

Whilst testing on the Android Emulator running Android 4.0 (Ice Cream Sandwich), I have noticed that the Edittext does some quite strange things.

Firstly, it underlin

相关标签:
7条回答
  • 2020-12-23 14:30

    Disabling Spell-Checking in EditText.

    In Android 4.0+ sometimes I get a red underline in my Textview so i add the property ...

    android:inputType="textNoSuggestions" 
    

    textNoSuggestions: to indicate that the IME should not show any dictionary-based word suggestions.

    Here is a list of possible properties that we can define in : android:inputType

    Disabling Word-Wrap

    remember that the property android:scrollHorizontally="true" doesn't work, so this is the solution:

    mEditText.setHorizontallyScrolling(true);
    
    0 讨论(0)
提交回复
热议问题