J2me将字体设置为整个列表

发布于 2024-12-18 17:12:15 字数 133 浏览 2 评论 0原文

List 类中有一个方法 setFont(int listItem, Font font) ,它可以为列表项设置某种字体。所以我必须循环遍历列表项并设置字体。有什么方法可以将一种字体设置为整个列表吗?

There's a method setFont(int listItem, Font font) in List class which sets some font to the list item. So I have to run through the list items and set fonts in a cycle. Is there any method to set one font to the whole list?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

蓝眼泪 2024-12-25 17:12:15

有什么方法可以将一种字体设置为整个列表吗?

MIDP 2 中没有此类方法。

lcdui List API 文档 - 人们可以很容易地发现 setFont(int, Font) 是唯一一种方法这样做

Is there any method to set one font to the whole list?

There is no such method in MIDP 2.

Full list of available methods is provided in lcdui List API documentation - one can easily find out that setFont(int, Font) is the only one way to do that

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