Search code examples
blackberrylistfield

How to Increase the row height of the selected item of listfield


I am using a ListField for my app to show the data in a list. Now my requirement is that i want to increase the row height of the selected item of the list.

For this, i created a GridFieldManager and populated my list using this manager. I then override the onFocus() method of this manager. But, this method is never invoked. As a result i am unable to increase the height of the selected row item.

Please help.


Solution

  • I got it working. I faked the ListField implementation. I removed ListField and replaced it with VerticalFieldManager. I adjusted its size during onfocus() and onUnfocus() and used sublayout() to change the height of this manager. Its working exactly the way i want.