【发布时间】:2013-01-16 16:12:10
【问题描述】:
可能重复:
how to disable spell correction programmatically in android
我创建了一个在屏幕上显示俚语的应用程序,例如 wassup 和 yessir。这些单词显示在文本视图中,并在我的设备上运行应用程序时显示为下划线,因为它们显然不在字典中。我不想要这个。
在下面的代码中,question[i] 是一个包含俚语的字符串数组:
LayoutInflater li=(LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View v = li.inflate(R.layout.answersrow, null);
TextView tv=(TextView)v.findViewById(R.id.answer);
Qname=question[i];
tv.setText(Qname);
感谢您提供的任何帮助。
【问题讨论】:
-
你试过在 Stack Overflow 上搜索过这个问题吗?
标签: android textview spell-checking underline misspelling