1

I am implementing an application for BlackBerry 9300, 9700 and storm. In this application I need to create a global toolbar or iconbar similar to the Facebook application. Please suggest how I can create this type of icon bar or tool bar.

Michael Donohue
  • 11,776
  • 5
  • 31
  • 44
veera
  • 67
  • 2
  • 9

2 Answers2

2

you can use tabbed view screens

or you can use BlackBerry - Custom menu toolbar

Community
  • 1
  • 1
Vivart
  • 14,900
  • 6
  • 36
  • 74
0

you can use ToolbarManager to implement toolbar in blackberry,i can give u a little Example:

Bitmap _bit = Bitmap.getBitmapResource("abc.png");
Image _bitI = ImageFactory.createImage(_bit);
ToolbarManager _tool = new ToolbarManager();
ToolbarButtonField _next = new ToolbarButtonField(_bitI,new StringProvider("Next"));
_tool.add(_next);
this.add(_tool)

_next.setCommand(new Command(new CommandHandler(){

  public void execute(ReadOnlyCommandMetadata metadata, Object context){
   \\Do what you want on click of this ToolbarButtonField
}
}));

you can create as many ToolbarButtonFields as u want , just what u need to do is add those ToolbarButtonFields to ToolbarManager.