user340151
user340151

Reputation:

How to Align Buttons side by side in Blackberry

I am working on blackberry application, I need to align the buttons side by side, can you please give me a sample code

Thanking you

Upvotes: 0

Views: 476

Answers (3)

rupesh
rupesh

Reputation: 420

you can use grid layout manager , refer the following link

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

Upvotes: 0

Andrey Butov
Andrey Butov

Reputation: 2279

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

Upvotes: 2

reflog
reflog

Reputation: 7665

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

Upvotes: 0

Related Questions