12-17-2008 05:11 PM
I want update my UI to a more fancy one make it like RIM's native applications.
When users start my application, it will list a few shortcut icons/buttons for each specific functionality. I want to cutomized all these icons to make them look more fancy.
1. they use bitmap.
2. when you move the focus on each icon/button, it changes to another bitmap. Just like RIM's application, like curve, when you move the trackball around, the focus change to a yellow circle around the selected app and that app's image is changed to another one. (such as addressbook is changed from close to be opened...)
Can anyone suggest me some sample code of doing this? I believe I should cutomized a filed class. But I want to see how other people do this job so that I can learn from you.
Thanks in advance!
12-17-2008 06:26 PM
Subclass BitmapField and make sure that you override isFocusable() to return true.
You can store the 2nd (focus) bitmap and override paint() and drawFocus() to paint the correct image and your custom focus indicator.
12-19-2008 10:33 AM
And you can find a sample of what RexDoug mentions here.
How To - Show focus changes using BitmapField
Article Number: DB-00427