黑莓中的UI设计与开发
我需要创建一个看起来像给定图像的黑莓用户界面,其中 ? 是图像,
我尝试了很多设计此 UI 但未能成功。 有人可以帮我设计这个用户界面吗?
提前致谢!
I need to create a Blackberry User interface which looks like the given image, where ? is an image,
I tried a lot to design this UI but could not succeed.
Can anybody help me to design this UI?
Thanks in Advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您肯定需要实现自己的自定义管理器来进行字段布局,以及实现焦点、导航和触摸功能。最好的选择是简单地用每个部分制作正方形,然后将它们彼此重叠地放置。
之后,覆盖触控板用于移动所选内容的导航和焦点方法。至于触摸事件,您应该将 (x,y) 转换为极坐标,以便于检测您正在触摸的部分,而不是仅仅查看给定点下布置的字段,因为您将有多个。
以下链接可能对您有用:如何 - 为屏幕创建自定义布局管理器
希望这对您有所帮助!
You'll definitely need to implement your own custom Manager that does the layout for the fields, as well as implementing the focus, navigation, and touch functionality. Your best bet is to simply make squares out of each segment, and then lay them out sort of overlapping one another.
After that override the navigation and focus methods for trackpad use to move the selection around. As far as touch events you should convert the (x,y) into polar coordinates for ease of detecting which segment you're touching, rather than just seeing which field is layed out under the given point, as you will have multiple.
Here's a link that you may find useful: How to - Create a custom layout manager for a screen
Hope this is helpful!
我会选择 CustomItem ,它允许您直接在 Canvas 上绘图,但同时它确实为您提供了许多侦听器,可以轻松链接到 Canvas 中的项目(区域)
I would go with CustomItem that allows you draw directly on Canvas, but in same time it does provide you with number of listeners that can be easily linked to items(areas) from Canvas