how to disable spellcheck Android edittext

后端 未结 6 1492
暗喜
暗喜 2020-12-13 01:33

I want to remove the underlines from texts inside edittext fields. \"text

6条回答
  •  清歌不尽
    2020-12-13 02:25

    In order to get rid of spell checking you have to specify the EditText's InputType in the XML as the following:

    android:inputType="textNoSuggestions"
    

    However, if your EditText is multiline and also you need to get rid of spell checking,then you have to specify the EditText's InputType in the XML as the following:

    android:inputType="textMultiLine|textNoSuggestions"
    

提交回复
热议问题