Change Alternating Colors in Firemonkey TListView

孤者浪人 提交于 2019-12-01 23:41:58

问题


Dropping a tlistview onto a form and checking the property 'AlternatingColors' to true, by default it will show a grey background on every other item on the listview.

My question is does anyone now how to change this color to something else?

Thanks,


回答1:


You need to edit the style of TlistView.

Right-click on listview, choose "Edit Custom Style" and in the structure panel there are two items: "itembackground" and "alternatinfitembackground".

You can change the colors from there.



来源:https://stackoverflow.com/questions/37570047/change-alternating-colors-in-firemonkey-tlistview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!