开发者

Centering LabelField in HorizontalFieldManager in Blackberry

开发者 https://www.devze.com 2023-03-30 23:09 出处:网络
I added HorizontalFieldManager to screen with backgroundcolor and with specific width and height.And i added a 开发者_运维百科labelField to hfm.But labelfield displaying at top in hfm.How can i adjust

I added HorizontalFieldManager to screen with backgroundcolor and with specific width and height.And i added a 开发者_运维百科labelField to hfm.But labelfield displaying at top in hfm.How can i adjust it to center.


Try This

LabelField.setMargin(Hfm height/2, 15, 0, 15);


Did you try to set the style of the labelfield to LabelField.Field_HCENTER? This should work for you

0

精彩评论

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