问一个弱问题,如何在添加ButtonField时强制位置为屏幕下方

1 view
Skip to first unread message

Yong.Xue

unread,
Mar 12, 2009, 4:43:58 PM3/12/09
to blackberry-dev
BB的UI,各种layout,太烦了,好的教程又不多,一直搞得我稀里糊涂的。。
请问大家,我想在每次添加ButtonField时,都放在屏幕的下方,靠屏幕下边缘对齐,代码要怎么写啊?
难道要自己写一个LayoutManager吗?

Frank

unread,
Mar 13, 2009, 12:14:53 AM3/13/09
to blackbe...@googlegroups.com
好像得自己写吧

里面内置两个子manager 比如contentManager 一个buttonbarManager
在setPositionChild里面给buttonbarManager设置位置为(0,Display.getHeight()-buttonbar.getHeight())
给contentManager设置位置为(0,0)
主manager关闭滚动NO_VERTICAL_SCROLL ,contentManager开启滚动

只是我的设想 不知可行不

2009/3/13 Yong.Xue <imob...@gmail.com>:

Reply all
Reply to author
Forward
0 new messages