Search code examples
blackberryjava-meblackberry-simulatorblackberry-eclipse-pluginblackberry-jde

How to flip a UI component when doing BlackBerry Java development?


I'm looking into porting my iPhone application to the BlackBerry and have run into a wall with the out of the box UI components and UI animations available for the BlackBerry. One feature that I really, really need to figure out is how do I flip over a UI component on the BlackBerry. For example, lets say that I have a UI component for a playing card. When the user selects that card I would like to flip it over to reveal what's on the other side.

Also, can anyone point me to any resources (books, websites, etc.) that deal with animation on BlackBerry devices?

Thanks.


Solution

  • You can achive effect in two ways:

    • BitmapField layout animation with image switch in the middle
    • BitmapField (or any custom field with image) image animation with image switch in the middle

    See animation related articles:
    BB KB - How To Display an animated GIF
    The BlackBerry Graphical User Interface: Part 2 - Direct Screen Drawing
    SO - Blackberry - fields layout animation
    SO - Blackberry - background image/animation RIM OS 4.5.0