我想从edittext字段中的文本中删除下划线。
我该怎么做呢?
发布于 2014-01-30 14:41:15
你可以用下面的代码来完成这项工作。只需将其粘贴到EditText
的布局中。
android:inputType="textNoSuggestions"
发布于 2015-11-30 15:09:16
为了摆脱拼写检查,您必须在XML中指定EditText
的InputType,如下所示:
android:inputType="textNoSuggestions"
但是,如果您的EditText
是多行的,并且您还需要取消拼写检查,那么您必须指定EditText的InputType,如下所示:
android:inputType="textMultiLine|textNoSuggestions"
发布于 2015-08-04 21:51:56
除了Chintan的答案之外,还允许这样(和其他)组合:
android:inputType="textCapSentences|textNoSuggestions"
https://stackoverflow.com/questions/21449505
复制相似问题