BlackBerry窗口标题不仅仅可以是文字,也可以是Field(比如图片),甚至Manager(比如Manager中嵌入图片和文字)。
HorizontalFieldManager mgr = new HorizontalFieldManager();
Bitmap image = Bitmap.getBitmapResource("icon0001.PNG");
BitmapField icon = new BitmapField(image, BitmapField.NON_FOCUSABLE);
mgr.add(icon);
mgr.add(new LabelField("Hello World Demo"));
setTitle(mgr);
运行结果如图: