Reputation: 21
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!
Upvotes: 0
Views: 480
Reputation: 10964
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!
Upvotes: 2
Reputation: 1748
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
Upvotes: 0