Custom List Picker shows different types of list picker dialog to pick a list item with customization of list picker dialog.
It is different from inbuilt list picker component, list picker component shows list items in a new activity/screen with less customization where custom list picker shows a dialog and you can customize its appearance.
Shows and Dismisses the list picker dialog.
Returns selection and selection index after picking
Property setter blocks to customize dialog properties.
Property getter blocks.
Added Single Choice Picker dialog which shows a dialog with radio buttons to select a item from it and returns selected item and index.
Added Multi Choice Picker dialog which shows a dialog with checkboxes to select multiple items from the list and returns a list of selected items and their indices.
For both of these dialog radio button, checkbox, positive button and negative button color is depends on your app accent color. Background color depends on app theme. You can set dialog title text and positive/negative button text.
Added properties to set positive/negative button text and dialog cancellable, when set false then dialog can not be dismissed unless clicked on Cancel.
AIX V2 com.thekstudio.CustomListPicker.aix (18.9 KB)