开发者

Blackberry DateField positioning

开发者 https://www.devze.com 2023-03-08 00:52 出处:网络
I\'m trying to center my date time on the screen using DateField in Blackberry. My code appears not to function as I expect it to. Can a kind soul divine what the problem might be:

I'm trying to center my date time on the screen using DateField in Blackberry. My code appears not to function as I expect it to. Can a kind soul divine what the problem might be:

setPositionChild(df, 
    (Display.getWidth()/2-(df.getContentWidth()/2)),
    (Display.getHeight()-df.getC开发者_开发技巧ontentHeight())/2);


If everything fails you can put this date field in a manager and allign it to center of the manager by both vertical and horizontal. After that you can add this field (manager) to the screen.

0

精彩评论

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