android textview 白色,android – AutoCompleteTextview默认情况下,颜色设置为白色
生活随笔
收集整理的這篇文章主要介紹了
android textview 白色,android – AutoCompleteTextview默认情况下,颜色设置为白色
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
我在我的Android應(yīng)用程序中使用了一個AutoCompleteTextView,它正常工作。我唯一遇到的問題是,默認(rèn)情況下,建議的顏色為白色,我無法看到任何建議。所以當(dāng)我開始打字時,列表會以白色條目(不可見)擴(kuò)展,但是當(dāng)我點(diǎn)擊任何項目時,我會發(fā)現(xiàn)它的工作原理是這樣的。只有顏色似乎是問題。我正在使用以下代碼。
android:layout_width="fill_parent" android:layout_height="wrap_content">
和
ArrayAdapter autoadapter=new ArrayAdapter(this,android.R.layout.simple_dropdown_item_1line,cities);
city = (AutoCompleteTextView) findViewById(R.id.location);
city.setAdapter(autoadapter);
city.setThreshold(1);
city.setTextColor(Color.BLACK);
任何人都可以告訴我問題是什么?
-提前致謝
總結(jié)
以上是生活随笔為你收集整理的android textview 白色,android – AutoCompleteTextview默认情况下,颜色设置为白色的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: ddhelper32.exe进程安全吗.
- 下一篇: webapi自宿主设置本地端口使用htt