LWUIT 1.4中backgroundtype为BACKGROUND_IMAGE_TILE_BOTH时如何去除屏幕底部的分割区域?
我使用 LWUIT 1.4,我喜欢使用它,因为它有我更喜欢的外观和感觉,例如 TabbedPane ,...。因此,此版本中的 Style
类中不存在静态字段 BACKGROUND_IMAGE_ALIGNED_CENTER
。我想制作一个 LWUIT Image
( png ) 作为表单的背景图像,我尝试使用 form.getStyle().setBackgroundType(Style.BACKGROUND_IMAGE_TILE_BOTH);
但问题是菜单栏上方有一个分割区域(其高度在视觉上等于菜单栏的高度):背景图像显示清晰,没有任何污点,但分割区域,类似于图像的上半部分,位于屏幕底部的菜单栏上方。那么如何去除这个分割区域呢?
I use LWUIT 1.4 and I like using it because there are look and feel I prefer in it such as the TabbedPane , ... . So the static field BACKGROUND_IMAGE_ALIGNED_CENTER
is not present in class Style
in this version. I want to make a LWUIT Image
( png ) as a form's background image and I tried using form.getStyle().setBackgroundType(Style.BACKGROUND_IMAGE_TILE_BOTH);
but the problem is that there is a splitting area occupying just above the menu-bar ( its height is visually equal to the menu-bar's height ) : the background image is displayed clearly without any stains but the splitting area , which is something like the upper part of the image , is at the bottom of the screen just above the menu-bar. So how to remove this splitting area ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道你指的是什么,图像会很有帮助,我还建议升级到 1.5,这是目前唯一支持的版本。
如果风格不符合您想要的方式,您始终可以设置画家以您喜欢的任何方式绘制您的背景。
I have no idea what you are referring to, an image would be helpful and I would also suggest upgrading to 1.5 which is the only supported version right now.
You can always just set a painter to paint your background in any way you like if the style doesn't act the way you want it to.