Talk:FMX.ListView.TListViewItem.Accessory

From RAD Studio API Documentation

In addition to a Bitmap and a Text caption, a TListViewItem also displays an Accessory icon. You can choose from three possible Accessory icons: Check, Detail, or More.

The purpose of the Accessory icon is to provide a visual indication to the user that a ListView Item offers further capabilities in addition to just selecting the item in the list.


Check: Displays a tick symbol. You can use this to indicate that the item has checkbox like behaviour.

Detail: Displays three stacked horizontal lines. You can use this in conjunction with the Detail property to indicate that further information is available for the item.

More: Displays an arrow pointing to the right. You can use this to indicate more options are available for the item, for example via a popup menu.


The default Accessory icon is 'More'.

Example usage:

 uses FMX.ListView, FMX.ListView.Types;
 ...
 var 
   vItem:TListViewItem;
 begin
   vItem:=ListView1.Items.Add;
   vItem.Accessory:=TAccessoryType.Check;
 ...

Note that to use TAccessoryType you must add FMX.ListView.Types to your Uses list.

  • Question/Discuss: Is it possible to create a TListViewItem without an Accessory icon? There is no TAccessoryType.None, and no writeable HasAccessoryItem property. Setting TListView.ItemAppearanceObjects.ItemObjects.Accessory.Visible to False hides all Accessory icons for the entire ListView, but it may not be possible to have some items in the list display an Accessory icon, while other items do not.
  • Question/Discuss: How should a developer go about implementing Accessory behaviours, such as Detail and Check, on a ListView Item? Maybe a worked example.