Change Alternating Colors in Firemonkey TListView

2020-04-11 18:29发布

问题:

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.