delphifiremonkeytlistbox

Can I change the color of a TListBox Selected Item?


I'm creating a multidevice FireMonkey application and I would like to change the color of a TListBox item when it is selected.
How can this be done in Rad Studio XE7?


Solution

    1. Open Bitmap Style Designer (see a bin folder of RAD Studio) and create style by default for Android (File -> New -> Android Light Style for FireMonkey)
    2. Expand node "Images" and make export all graphics resources.enter image description here
    3. In any kind of graphics editor change color of background of TListBoxItem. enter image description here
    4. Return to BitmapStyleDesigner and update each images (style.png, style20x.png, style15.png, style30x.png). For updating, select image node and click on "Update" button. enter image description here
    5. Save style to file "File->Save as...->Выбираем тип файла "FireMonkey Style".
    6. Put Style Book in a form and load this style.