开发者

Blackberry Custom LabelField

开发者 https://www.devze.com 2023-02-02 08:02 出处:网络
How to create a custom Label field that works similar to defau开发者_高级运维lt LabelField issues : it should be able to take large texts and should be able to display them in differentlines if the l

How to create a custom Label field that works similar to defau开发者_高级运维lt LabelField issues : it should be able to take large texts and should be able to display them in different lines if the length exceeds the screen width.


The existing LabelField class already displays text on a different line if the length exceeds the screen width. To increase the font size do something like this:

label.setFont(Font.getDefault().derive(Font.PLAIN, 18, Ui.UNITS_pt));
0

精彩评论

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