简体   繁体   中英

How to Change ListView Font Color?

I want to make an aplication with a white background using a listView for show items.

But, the default font color of android is white so my items are white too, how can I change the font color of my listview?.

Actually, you cannot change font color of ListView, because ListView does not have text in it. Instead, you can change the items in ListView which is normally provided using an BaseAdapter .

For more about ListView, check out theHello ListView tutorial . Also, you can check out this ListView example which contains a customized BaseAdapter in ApiDemos. This might solve your problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM