Android应用程序强调拼写错误的单词

时间:2013-02-01 10:57:11

标签: android textview spell-checking underline misspelling

  

可能重复:
  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);

感谢您提供任何帮助。

1 个答案:

答案 0 :(得分:0)

答案是在editText的xml:

中设置
android:inputType="textNoSuggestions"
相关问题