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

前端 未结 7 1832
-上瘾入骨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:21

    Disabling the spell checker for general text input via code:

    mEditText.setInputType(InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS);
    

提交回复
热议问题