08-02-2010 02:36 AM
I am using ListFields SetRowHeight(index,Height) method to set the ListFields rowHeight Dynamically...
But i am facing one problem,
When i am using the Library installed in
C:\Program Files\Research In Motion\BlackBerry JDE 4.6.1\lib\net_rim_api.jar in Eclipse then its ok but, as i am going to change the Liberary which is installed in Eclipse plugins then its giving error that this method is not supported,only setRowHeight(Height) this method is supported, and i also not found any Documentation for this method.. so is this method is ok? is there any Documentation for this method? and whats the reason that eclipse plugin not shows this method while jde Library support this method...
08-02-2010 05:37 AM - edited 08-02-2010 05:38 AM
Thanks for reply.. but its working fine in device.. and its very usefull for me to dynamically changing the height of the list field,so i used it.
Will it create any problem in future?
08-02-2010 05:39 AM
undocumented methods can be changed at any time without notice so use them at your own risk
08-02-2010 05:44 AM
but i think this method is very usefull to dynamically set the rowHeight,i think they have to Document this method. Because we can easily change the rowheight with this method instead of using other methods.
08-02-2010 05:48 AM
we will see if RIM complies to your wishes. feel free to suggest it!
08-02-2010 10:13 AM
The reason that method it is not documented is, I believe, that it is experimental and may change. (It is apparently new to OS 5.) My guess is that it, or some method like it, will eventually be bestowed with documentation.
08-09-2010 03:03 AM
Thanks to all for replying..
but now my problem is that if i not use it then how i can set Row Height Dynamically??
my code is like this..
class MyList extends ListField implements ListFieldCallBack
public void drawListRow(ListField listField, Graphics graphics, int index,int y, int width)
if(index==0 || index==3 || index==6)
I want above Functionality....
If i use setRowHeight(index,30); then list is working fine, But if i use setRowHeight(30); then its not working fine its giving rowHeight randomly...
So please help me in this issue. How can i set Row Height Dynamically??
08-09-2010 06:41 AM - edited 08-09-2010 09:00 AM
You have to Check Condition for the Index
as I used then it will work Perfectly,its working fine in my Application.