LWUIT 1.4中backgroundtype为BACKGROUND_IMAGE_TILE_BOTH时如何去除屏幕底部的分割区域?

发布于 2024-12-17 20:18:33 字数 377 浏览 1 评论 0原文

我使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

久隐师 2024-12-24 20:18:33

我不知道你指的是什么,图像会很有帮助,我还建议升级到 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文