开发者

Toolbar or iconbar in BlackBerry application

I am implementing an application for BlackB开发者_C百科erry 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.


you can use tabbed view screens

or you can use BlackBerry - Custom menu toolbar


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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜