Change the figure of the firemonkey aDetail

Asked

Viewed 17 times

1

I would like to change the figure of the Listboxitem.ItemData.Accessory to a figure of the imagelist or another loaded from a file.

Someone knows how to change?

Accessory := Tlistboxitemdata.Taccessory(i)

To

Listboxitem.ItemData.Accessory := Imagelist.picture.....

Or place the icon of Listboxitem.ItemData.Accessory.aDetail from IOS

Thanks in advance

1 answer

0

Hello I use as follows, create a imagelist, I put the image I want and in the OnUpdateObject of listview, inform who will receive the image:

img := AItem.View.FindDrawable('imgFundo') as TListItemImage;
img.ImageIndex := 0;

rememberndp that I am using a dynamic list.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.