如何更改诺基亚全触摸Lwuit表格标题颜色 [英] How to change Nokia full touch lwuit form header color

查看:90
本文介绍了如何更改诺基亚全触摸Lwuit表格标题颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想基于完全触摸形式更改诺基亚lwuit的标题颜色,我已经尝试过setTitleComponent方法,但是它不起作用.请同时检查以下链接 http://projects.developer.nokia.com/LWUIT_for_Series_40/wiki/UsingSeries40FullTouchFeatures 在其中提到我们不能设置标题的样式,但这是否意味着我们也不能更改bgcolor或将自定义图像放在标题中?

I want to to change the header color of nokia lwuit based full touch form and i have tried setTitleComponent method but it is not working. Please also check the following link http://projects.developer.nokia.com/LWUIT_for_Series_40/wiki/UsingSeries40FullTouchFeatures in which it is mentioned we cannot style the header but is it means we cannot change the bgcolor as well or put custom images in the header?

推荐答案

请注意,将LWUIT用于Series 40端口时,运行LWUIT应用程序的默认方式是在Series 40全触摸设备中使用普通大小的画布.因此,Series 40镀铬显示在画布顶部.除标题文本外,无法自定义它.

Note that when using LWUIT for Series 40 port, the default way of running LWUIT apps is a normal-size canvas in Series 40 full touch devices. Thus the Series 40 chrome shows on top of canvas. And there is no way of customising it (other than the title text).

如果您想为标题提供品牌元素,则选项为: 1.在Series 40标题栏下方创建一个附加标签 2.以全屏模式运行该应用程序.我们正计划为此创建一个高级API,但目前已经可以使用以下技巧: ((GameCanvas)(javax.microedition.lcdui.Display.getDisplay(this)).getCurrent()).setFullScreenMode(true); 在后一种选择中,您当然会失去Series 40的全触摸布局.

If you want to provide branding elements to the title, the options are: 1. create an additional lable below the Series 40 headerbar 2. run the application in full-screen. We are planning to create a high-level API for this but currently it is already possible using the following trick: ((GameCanvas) (javax.microedition.lcdui.Display.getDisplay(this)).getCurrent()).setFullScreenMode(true); In the latter option you will of course lose the Series 40 full touch layout.

这篇关于如何更改诺基亚全触摸Lwuit表格标题颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆