设置Screen标题为图片,Manager
2010-09-30 15:47
197 查看
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);
运行结果如图:
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);
运行结果如图:
相关文章推荐
- 帝国cms设置默认自动选取第一张上传图为标题图片?
- ios移动开发navigationItem自带的返回按钮设置成自定义图片或者不显示父视图的标题文字
- iOS LaunchScreen设置启动图片 启动页停留时间
- UIButton 设置图片,标题的偏移位置EadgeInsets细节
- iOS-UIButton-设置button标题和图片位置
- DESTOON系统文章模块默认设置第一张图片为标题图的方法
- LaunchScreen.storyboard 启动页设置图片不显示 启动页白屏
- 设置网页标题图片
- UIButton 设置标题和图片的使用方式
- dede5.7将图片的ALT注释设置为文章标题且点击图片进入下一页,最后一页进入下一篇
- 微信分享到朋友圈,分享给好友设置标题图片描述参数
- iOS LaunchScreen设置启动图片 启动页停留时间
- RecyclerView设置背景图片长宽一样(以GridLayoutManager为例)
- iOS 设置按钮标题、图片的偏移
- 2015最新微信接口分享标题、图片和描述自定义设置
- 用代码实现将activity标题设置成图片
- R语言设置图片标题,坐标轴的颜色
- 设置导航条标题及背景图片
- IOS 设置按钮的的图片和标题位置
- 修改MFC标题栏中的图片以及标题设置