Centering LabelField in HorizontalFieldManager in Blackberry
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
精彩评论