ListViewDialog
A list view in a dialog to put image, title and detail.
I made this extension specifically to show my music list when using the Player extension I made, I did not do any further testing with other options.
Functions
AddItem
Adds an item to the list with an image, title and detail.
imagePath
: Path of the image associated with the item.title
: Title of the item.detail
: Detail of the item.
SetTitleStyle
Sets the color and size of the title text.
color
: Text color.textSize
: Text size.
SetDetailStyle
Sets the color and size of the detail text.
color
: Text color.textSize
: Text size.
SetDialogStyle
Sets the background color and corner radius of the dialog.
backgroundColor
: Background color of the dialog.cornerRadius
: Corner radius of the dialog in pixels.
SetPositiveButton
Sets the color, text, and visibility of the positive button in the dialog.
color
: Color of the positive button text.text
: Text to display on the positive button.visible
: boolean, defines whether the positive button is visible.
SetSearchBarStyle
Sets the hint text, hint color, and search field text color.
hintText
: Hint text to display in the search field.hintColor
: Hint text color.textColor
: Color of the entered text.
ShowDialog
Shows the list view dialog.
ClearItems
Removes all items from the list.
Event
ListItemClicked
Fires when an item in the list is clicked.
index
: Index of the clicked element.title
: Title of the clicked element.detail
: Detail of the clicked element.imagePath
: Image path of the clicked element.
Note:
I couldn't test with more than 7 songs in the list, my other device broke and had all my music on it. I don't know if the dialog can get slow with a large amount of music.
Extension:
joejsanz.joedevlistviewdialog.aix (14.1 KB)
Thanks.