j2me中如何添加背景
现在我正在开发一个移动应用程序,我已经通过 Canvas 开发了菜单,当我尝试将背景添加到应用程序中时,我遇到了困难。
这意味着我需要将背景添加到我的应用程序中,并且菜单可以在此背景上可见。
我正在尝试找到将背景添加到 j2me 中的方法,并且我使用数组作为菜单,并且我找到了一个关于使用 TiledLayer
和 Layermanager
在 J2me 中添加背景的示例,因此我只是将这些对象添加到我的代码中进行测试。
它可以成为我的代码的背景吗?我不能让它这样工作
Now I am developing a mobile application, I have developed menu by Canvas and I get stuck when I try to add background into application.
It means that I need to add background into my application and menu can visible on this background.
I am trying to find the way to add background into j2me, and I use array for menu and I found an example about adding background in J2me using TiledLayer
and Layermanager
, therefore that I just add these objects into my code for test.
Can it become a background in my code? I can not make it work that way
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
上面给出的TiledLayer和Layermanager,首先考虑使用GameCanvas 而不是 Canvas
学习一些介绍性教程也不会有什么坏处:
教程提供了如何使用
TiledLayer
和LayerManager
添加背景的详细说明given above, first of all consider using GameCanvas instead of Canvas
Studying some introductory tutorials wouldn't hurt either:
By the way both above tutorials provide detailed explanations how to use
TiledLayer
andLayerManager
for adding background