FMX.ListView.Appearances.TPublishedAppearance.ItemEditAppearance
Delphi
property ItemEditAppearance: string read GetItemEditAppearance write SetItemEditAppearance stored False;
C++
__property System::UnicodeString ItemEditAppearance = {read=GetItemEditAppearance, write=SetItemEditAppearance, stored=false};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | FMX.ListView.Appearances.pas FMX.ListView.Appearances.hpp |
FMX.ListView.Appearances | TPublishedAppearance |
Description
String that designates the item appearance name when in edit mode.
- Note: This is a design-time property. At run time, access TAppearanceListView.ItemEditAppearanceName instead.
When your list view switches between display mode and edit mode, the item appearance switches between the appearance defined in the ItemAppearance property (display mode) and the appearance defined in the ItemEditAppearance property (edit mode). Items may display an animation as their appearance changes. For example, setting ListItemDelete enables the display of a platform-specific Delete button when the user either clicks the item (in Android) or clicks the circular delete symbol (in iOS).
These are the possible values of ItemEditAppearance:
ItemEditAppearance | ItemAppearance | Behavior Mode | List Item Preview (Android/iOS) | |
---|---|---|---|---|
Not Selected | Selected | |||
Custom | Custom | Custom | ||
DynamicAppearance | DynamicAppearance | Custom | ||
ImageListItemBottomDetailShowCheck | ImageListItemBottomDetail | Select | ||
ImageListItemBottomDetailRightButtonShowCheck | ImageListItemBottomDetailRightButton | Select | ||
ImageListItemDelete | ImageListItem | Delete | ||
ImageListItemRightButtonDelete | ImageListItemRightButton | Delete | ||
ImageListItemRightButtonShowCheck | ImageListItemRightButton | Select | ||
ImageListItemShowCheck | ImageListItem | Select | ||
ListItemDelete | ListItem | Delete | ||
ListItemRightDetailDelete | ListItemRightDetail | Delete | ||
ListItemRightDetailShowCheck | ListItemRightDetail | Select | ||
ListItemShowCheck | ListItem | Select |
Each edit-mode item appearance (ItemEditAppearance) matches a display-mode item appearance (ItemAppearance). The Behavior Mode listed in the table above determines how list items behave.
Behavior Mode | Behavior |
---|---|
Delete | Tap a list item to show a Delete button. Tap Delete to delete the item, tap anywhere else to hide the Delete button. |
Select | Tap a list item to select it. Tap again to unselect it. You can select more than one item (multiselect). |
Custom | Your custom implementation of the edit mode item appearance determines the behavior of list items. |
See Also
- FMX.ListView.TListViewBase.EditMode
- FMX.ListView.Appearances.TPublishedAppearance.ItemAppearance
- FMX.ListView.TListViewBase.CanSwipeDelete