【问题标题】:suggested words in autocomplete not visible?自动完成中的建议单词不可见?
【发布时间】:2013-10-20 00:10:44
【问题描述】:

当我尝试使用自动完成文本视图时,它可以工作,但所有建议的单词都是白色的,当我点击它们时,可以看到该建议是什么

这个问题我该怎么办?

<AutoCompleteTextView
      android:id="@+id/etBrand"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:ems="10"
      android:hint="Brand"
      android:inputType="textAutoComplete|textAutoCorrect"
      android:textColor="#000000"
      android:textColorHighlight="@android:color/black" />

我应该在这个 xml 代码中添加什么来解决这个问题? 提前谢谢...

【问题讨论】:

  • private static final String[] Brands = new String[] {"Brand1","Brand2","Brand3","Brand4","Brand5",}; ArrayAdapter adapterBrand = new ArrayAdapter(this, android.R.layout.simple_dropdown_item_1line, Brands);

标签: android autocomplete textview


【解决方案1】:

这是一个记录的错误,

您可以在同一个链接中找到一些修复它的方法。

Auto complete text view bug

Bug solution

希望对你有帮助……

来源https://stackoverflow.com/a/8471078/1932105

请在下次询问之前使用搜索。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-12-13
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多