English 中文(简体)
• 如何适当确定已经研究过的LWUIT Widget的背景?
原标题:How to properly Set Background Color of LWUIT Widget that is already themed?

我尝试了以下法典:

final Container root = getRootAncestor(c);
TextArea resultBox = findResultBox(root);

Style style = resultBox.getUnselectedStyle();
style.setBgImage(null);
style.setBgColor(0x00ff00);
style.setFgColor(0xff0000);
resultBox.setUnselectedStyle(style);
resultBox.setSelectedStyle(style);

哪些工作只是字体/地色,但背景颜色依然存在(它仍在使用该主题的背景形象)。 我还努力:

style.setBackgroundType(Style.BACKGROUND_IMAGE_SCALED);
style.setBgImage(Image.createImage(1, 1, 0x00ff00));

But this also doesn t work.

Using LWUIT 1.5.

最佳回答

为会议提供背景透明度:255。 它有可能使肤色公正透明。 创造博彩胜于肤色背景,以确保形象被定作无效。

问题回答

暂无回答




相关问题
add text in http request string url

ok i made a midlet through which i can connect to server pages and get soem information as response. For example i made a midlet through which i acced url: http://example.com/?u=nepal&t=1 Now i ...

Do I have to do a setSize() on a Vector before using it?

Given private final Vector v = new Vector(); //instance variable the following 3 lines are in an instance method in the same class. 1. int length = v.capacity(); 2. int size = v.size(); ...

Is the situation with Java ME improving?

It seems to be the consensus that developing for Java ME is not as cross platform as you might expect, particularly compared to say java SE, but it is difficult to assess how the situation is evolving....

Privileged operations in netbeans mobility

I m writing a Java ME app that will use privileged operations such as messaging. By default the user is prompted to confirm each of these operations, but I would like to run it as a background ...

ClassFormatError: 56 while using hessian in j2me

I am trying to use the hessian j2me implementation @ http://hessian.caucho.com/ using java me sdk 3.0. http://hessian.caucho.com/doc/hessian-overview.xtp#Hessian%20Client%20for%20a%20cell-phone ...

热门标签