English 中文(简体)
Menu Bar Height in the LWUIT Form
原标题:Menu Bar Height in the LWUIT Form

在J2ME使用LWUIT提出申请。 当我把这一应用推向三星装置时,便会产生以下问题。

int h = 显示.getInstance(>getDisplayWidth()。

It returns 388 for the Samsung GT S5250. So when I draw an image using this dimension it displays a white strip at the bottom of the screen. When I call the Form.show() it displays correctly and height is 400 so how to resolve this issue. I want to know how the Form size is calculated in LWUIT and how it takes MenuBar Height and white strip display at bottom of the screen.

最佳回答

I think you typed getDisplayWidth() where you meant to type getDisplayHeight().

不管怎样,你所看到的问题都是由sam子的ug子造成的。 LWUIT在MIDP中采用完全的筛选方式,掩盖了原住民的所有权区,然而,在某些装置中,并不总是立即发生,因此LWUIT从这些装置中获取不正确的信息。 复习通常会解决这个问题,到LWUIT利用屏幕时,规模就会得到纠正。

一般来说,解决办法非常简单,为树立你的形象制定了通用的法典,如果在你即将上台时,图像尺寸不合适,那么就只是重新塑造了传单的形象。 这也将解决可能产生问题的装置轮换问题。

问题回答

暂无回答




相关问题
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 ...

热门标签