第五版中开发自定义列表控件

发布于 2024-08-03 12:10:37 字数 419 浏览 1 评论 0原文

如果要为 S60 第五版手机开发自定义列表控件,最好的方法是什么?

该控件应该能够在自定义布局中提供丰富的数据呈现。每个项目中应该可以包含图像、文本、按钮。每个列表项应该能够展开/折叠以提供有关该项目的更多详细信息,并且列表的其余部分应该适应剩余的显示空间。

您知道有任何 Symbian 应用程序具有与此类似的控件吗?

由于此控件也应该很灵活,因此我一直在考虑使用一些可通过 XML 配置的 UI 布局。到目前为止,我已经提出了Symbian 的HTMLControl。您还有什么可以推荐的?你的最佳做法是什么?

UI 与 C++ 中的本机代码紧密相关,因此我不考虑 WRT。

If a custom list control is to be developed for S60 5th edition phones, what is the best approach to do that?

The control should enable rich presentation of data in custom layouts. It should be possible to include images, texts, buttons in every item. Each list item should be able to expand/collapse to provide more details about the item, and the rest of the list should adapt to the display space that is left.

Do you know of any Symbian application that has a control similar to this?

As this control should be flexible as well, I have been thinking about using some UI layout that is configurable by XML. So far, I have come up with HTMLControl for Symbian. What else can you recommend? What's your best practice?

The UI is tightly linked to native code in C++, so I am not considering WRT.

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

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

发布评论

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

评论(1

长伴 2024-08-10 12:10:37

S60 (Avkon) 中的列表框子类化是一个主要的难题。我已经这样做过几次了,或多或少成功,通常较少。

很明显,Jan-Ole 为 Gravity 编写了他的自定义列表框,这可能使他幸免于难付出了很多努力,让UI体验变得更好。

因此,要么从头开始编写一些只在屏幕上绘制的内容,要么看看是否可以开始使用 Qt。它将在 Symbian^3 及以上版本中提供,并且可以一直安装到 S60 第 3 版。

Subclassing listboxes in S60 (Avkon) is a major pain. I've done this a few times, more or less successfully, ususally less.

It is telling that Jan-Ole wrote his custom list box for Gravity, it probably spared him a lot of effort and made the UI experience better.

So either write something from scratch that just draws on the screen, or see if you can start using Qt already. It will be shipping in Symbian^3 onwards, and does install all the way back to S60 3rd edition.

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