Search code examples
user-interfaceblackberryexpandablelistview

How to create expandable listview in blackberry


i search a lot but no single link found for Expandable listview in Blackberry, i know how to create Expandable list in android ,if someone having idea about Blackberry Expandable listview than please help me.

enter image description here


Solution

  • if you mean BlackBerry Java SDK, then take a look at TreeField class.

    UPDATE:

    In this case the ListField would be the most suitable choice. Implement ListFieldCallback according to your needs and attach it to the ListField instance. When user clicks on an "expandable" list item, then just process this event in ListFieldCallback and repaint your list instance. Here is the tutorial on working with ListField classes.