android textview 白色,android – AutoCompleteTextview默认情况下,颜色设置为白色
生活随笔
收集整理的這篇文章主要介紹了
android textview 白色,android – AutoCompleteTextview默认情况下,颜色设置为白色
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
我在我的Android應用程序中使用了一個AutoCompleteTextView,它正常工作。我唯一遇到的問題是,默認情況下,建議的顏色為白色,我無法看到任何建議。所以當我開始打字時,列表會以白色條目(不可見)擴展,但是當我點擊任何項目時,我會發現它的工作原理是這樣的。只有顏色似乎是問題。我正在使用以下代碼。
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);
任何人都可以告訴我問題是什么?
-提前致謝
總結
以上是生活随笔為你收集整理的android textview 白色,android – AutoCompleteTextview默认情况下,颜色设置为白色的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: ddhelper32.exe进程安全吗.
- 下一篇: 大电池+大屏幕!苹果iPhone 14