简体   繁体   English

Android EditText禁用拼写检查并保留多行

[英]android EditText disable spell check and leave multiline

I have an EditText which is intended to be multiline. 我有一个打算是多行的EditText。
A default input type performs spell checking and red lines are drawn below the EditText if a word is "incorrect". 默认输入类型执行拼写检查,如果单词“不正确”,则在EditText下方绘制红线。
I want to disable this feature. 我想禁用此功能。
I tried android:inputType="textNoSuggestions" , but then EditText is no longer multiline. 我尝试了android:inputType="textNoSuggestions" ,但是EditText不再是多行。
Please tell me what are possible solutions. 请告诉我什么是可能的解决方案。

添加:

android:inputType="textMultiLine|textNoSuggestions"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM