BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 08-07-2008, 06:14 PM   #1 (permalink)
New Member
 
Join Date: Oct 2006
Location: Ukraine
Model: none
Carrier: UMC
Posts: 7
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Does someone have a variable-height ListField?

Please Login to Remove!

Not "true" variable height.
I just need it to behave this way: rows go in groups. Focus should move by groups, not by lines, and all the lines of current group should be drawn selected.

I tried to override moveFocus(int amount, int status, int time), but failed for now. Maybe someone just has the code to share?
Thanks.

It would be great if it supported multiselection.
Offline  
Old 08-08-2008, 04:22 AM   #2 (permalink)
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

i would suggest you put your groups into single objects and adjust the drawing behaviour accordingly.

for example you can make an object containing three other objects.
set the height of the listfield to three times the normal height and edit the drawlistrow callback according to your wishes, for example drawtext(object1.getattribute()) at y, drawtext(object2.getattribute()) at y+5 etc
__________________
java developer, Devinto, hamburg/germany
Offline  




Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.