ListViewer - Customizable List Views

I did this separately for an extension I'm doing for a color selector with seekbars, I needed a horizontal list in circles and this came out, I know it could look better, but for now I'll leave it here.


component_method (17)

  1. SetListItems(itemList)
    • itemList: List of items (YailList) to set in the list.

component_method (3)

  1. AddListItem(item)
    • item: Text string representing the new item to add to the list.

component_method (5)

  1. RemoveListItem(index)
    • index: Integer index of the item to remove from the list.

component_method (20)

  1. UpdateListItem(index, newItem)
    • index: Integer index of the item to update in the list.
    • newItem: Text string representing the new value of the updated item.

component_method (19)

  1. SortListItems()

component_method (4)

  1. AttachToView(viewComponent)
    • viewComponent: Visual component (AndroidViewComponent) to which the list view should be attached.

component_method (18)

  1. SetScrollBarVisible(visible)
    • visible: Boolean value (true or false) indicating whether to set the visibility of the list scroll bar.

  1. SetListBackgroundColor(color)
    • color: Text string representing the background color of the entire list in #RRGGBB or #AARRGGBB format.

component_method (11)

  1. SetItemTextColor(color)
    • color: Text string representing the text color of the list items in #RRGGBB or #AARRGGBB format.

  1. SetListItemBackgroundColor(index, color)
    • index: Integer index of the item to change the background color.
    • color: Text string representing the background color of the item in #RRGGBB or #AARRGGBB format.

  1. SetAllItemsBackgroundColor(color)
    • color: Text string representing the background color of all items in the list in #RRGGBB or #AARRGGBB format.

  1. SetListItemCornerRadius(index, radius)
    • index: Integer index of the item to set the corner radius.
    • radius: Integer value representing the corner radius of the item.

  1. SetListItemTextColor(index, color)
    • index: Integer index of the item to change the text color.
    • color: Text string representing the text color of the item in #RRGGBB or #AARRGGBB format.

component_method (15)

  1. SetListItemSize(index, width, height)
    • index: Integer index of the item to set the size.
    • width: Integer value representing the width of the item.
    • height: Integer value representing the height of the item.

component_method (6)

  1. SetAllItemSize(width, height)
    • width: Integer value representing the width of all items in the list.
    • height: Integer value representing the height of all items in the list.

component_method (8)

  1. SetDividerColor(color)
    • color: Text string representing the color of the divider lines between items in #RRGGBB or #AARRGGBB format.

component_method (9)

  1. SetHorizontal(horizontal)
    • horizontal: Boolean value (true or false) indicating whether to set the list in horizontal mode.

component_set_get (2)

  1. ItemCount()

component_event (2)

  1. ItemClicked(index)
  • index: Integer index of the item that was clicked.

component_event (3)

  1. ItemLongClicked(index)
  • index: Integer index of the item that was long-clicked.

Screenshots:





The one below is the one I made this extension for:


aia project:
CustomListViewer.aia (25.3 KB)

Extension:
JoeDevListViewer.aix (17.5 KB)


Thanks.

10 Likes

Very nice extension!

2 Likes

Thank you so much

1 Like

Looks awesome :ok_hand::clap::+1::heart_eyes::sparkling_heart::sunglasses:

1 Like

Thank you so much

1 Like

Thanks for your efforts. Very good extension.

Thank You so much @husnain