在画布J2ME中插入带量表的窗体 [英] Insert Form with gauge in Canvas J2ME

查看:148
本文介绍了在画布J2ME中插入带量表的窗体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可能以某种方式在画布上显示一个规格?我想用旋转器做一个自定义警报。

I want to know if it is possible to somehow show a gauge in a canvas? I want to make a custom alert with a spinner.

但我想减小表单的高度,让我们说屏幕尺寸的1/4。

But I want to reduce the height of the form to let's say 1/4th of the screen size. Could anyone tell me if its possible?

推荐答案

如果你想在Canvas中使用微调器,你需要自己绘制图形基元和使用 Display.callSerially()

If you want something like a spinner in a Canvas you need to draw it yourself using graphics primitives, and animate using Display.callSerially().

而不是自己绘制它,你可以包括每个框架的微调器作为一个图像。你仍然需要动画他们不知何故。或者您可以使用动画 GIF (如果您的设备支持)。

Instead of drawing it yourself you could include each frame of the spinner as an image. You'd still need to animate them somehow. Or you could use animated GIFs if your device supports them.

这篇关于在画布J2ME中插入带量表的窗体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆