多行标签字段

| 我必须显示一个字符串,该字符串必须足够大或不足以容纳所有设备中的一行,我希望labelfield控件在原始行之后自动在“新行”中显示其余文本,我的意思是...如果字符串不能单行显示,则自动回车,我尝试过的所有移动操作系统都可以这样做,但是我无法使BB OS正常工作,它会在需要时截断我的字符串,这很烦人。 谢谢     
已邀请:
        一种方法是将包含LabelField的Horizo​​ntalFieldManager放在VerticalFieldManager中。 例如。
LabelField labelField = new LabelField(\"This is a very long sentance that I have written to show that the text will wrap around when it gets to the edge of the field.\");
VerticalFieldManager vfm = new VerticalFieldManager();
HorizontalFieldManager hfm = new HorizontalFieldManager();
hfm.add(labelField);
vfm.add(hfm);

add(vfm);
    

要回复问题请先登录注册