我定义了一个ListAdapter:如何设置ListAdapter的文字颜色?
setListAdapter(new ArrayAdapter<String>(TimeMode_Choose.this, android.R.layout.simple_list_item_1, Chooses));
然后我定义的背景色:
getListView().setBackgroundColor(Color.BLACK);
但现在我的问题是,整个列表的文本颜色为黑,我看不到名单。
如何更改textcolor?
你能详细说一下吗? – 2013-05-05 18:05:26
http://www.vogella.com/articles/AndroidListView/article.html 请参阅第9节。 – 2013-05-05 18:14:53
我编辑了我的答案 – 2013-05-05 18:23:36