【问题标题】:Android app underlines misspelled words [duplicate]Android应用强调拼写错误的单词[重复]
【发布时间】: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


【解决方案1】:

答案是设置,在editText的xml中:

android:inputType="textNoSuggestions"

【讨论】:

    猜你喜欢
    • 2017-10-19
    • 2012-11-12
    • 2015-05-06
    • 2010-10-16
    • 2018-11-25
    • 2020-10-26
    • 2018-12-07
    • 2020-06-02
    • 2021-10-05
    相关资源
    最近更新 更多