开发者

Variable row size list field in blackberry

I have created an application that con开发者_如何转开发tains a list field(custom)

If a certain condition is satisfied I want rowheight to be 100, else it should be 50

How can I do that?

I tried setRowHeight(index,size); But it didn't work. Moreover it's undocumented to.


i did some manipulations in the drawListRow method of the custom list field and i could make a list field with variable row size

if(mycondition==true)
   setRowHeight(50);
else
   setRowHeight(100);

also in drawrow method i wrote

layout(width, 100);

and it worked for me....

but i m still testing it to check whether it works on all devices and in all conditions and may be some body else help me to make it better!!!!!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜