AutoCompleteTextview Color set white by default

前端 未结 10 2243
自闭症患者
自闭症患者 2020-12-18 18:16

I used an AutoCompleteTextView in my android app and it is working correctly. The only problem I am facing is that the color of the suggestions is white by default that is i

10条回答
  •  悲哀的现实
    2020-12-18 19:07

    You can use simple_list_item_1 in ArrayAdapter,

    ArrayAdapter autoadapter=new ArrayAdapter(this,android.R.layout.simple_list_item_1,cities);
                city = (AutoCompleteTextView) findViewById(R.id.location);
    

    Another solution is to quit the style in AndroidManifest.xml

    NOTE: This solution does not work with lollipop OS versions

提交回复
热议问题