开发者

Align field correctly in Blackberry

开发者 https://www.devze.com 2023-03-27 17:44 出处:网络
Good day, please am new to blackberry development and i am trying to achieve the following look on the screen:

Good day, please am new to blackberry development and i am trying to achieve the following look on the screen:

text1 -------------------- text2

image--------------------text3

Assuming that text1 and text2 is the left and right end of the screen and image and text3 are b开发者_Python百科elow them respectively(forget the lines). How do i achieve that?


To give a full answer maybe we will need more info but I'll give you something that would let you start.

You have to work with managers.

I would add a VerticalFieldManager and to that VFM I would add two HorizontalFieldManager. The first HFM containing two LabelFields and the second one the image and another Labelfield.

In the style of the labelField and image you will have to include FIELD_RIGTH or FIELD_LEFT so each element is placed in the correct location.

This is from de official docs, it may help you. (consider reading the rest of the page) http://docs.blackberry.com/en/developers/deliverables/29251/Manager_1579416_11.jsp


use the field manager either vertical or horizontal field manager as per your requirement. remember adding the field manager, whichever u use......

thanks

0

精彩评论

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