Search code examples
delphifiremonkeydelphi-xe8

Change Alternating Colors in Firemonkey TListView


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,


Solution

  • 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.