开发者

How to Align Buttons side by side in Blackberry

开发者 https://www.devze.com 2023-01-03 04:47 出处:网络
I 开发者_如何学Pythonam working on blackberry application, I need to align the buttons side by side, can you please give me a sample code

I 开发者_如何学Pythonam working on blackberry application, I need to align the buttons side by side, can you please give me a sample code

Thanking you


final class MyScreen extends MainScreen {
    MyScreen() {
        HorizontalFieldManager hfm = new HorizontalFieldManager();
        hfm.add(new ButtonField("button1"));
        hfm.add(new ButtonField("button2"));
        add(hfm);
    }
}


Seems you want to add those buttons to HorizontalFieldManager before adding to your Screen.


you can use grid layout manager , refer the following link

http://www.thinkingblackberry.com/archives/116

0

精彩评论

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