The application status bar

Hello

My application will have 4 different modes to work with. A status bar at the top shows the general situation of the application (as the camera power switch, video clips, #of etc.). This status bar always be present and one of the 4 modes can update.

Basically, I want to maintain a common status throughout the app bar. My question is, how should go on the implementation of the user interface?

I have 4 screens for 4 modes, each with its own implementation of status bar?

or just 1 screen that will update the status bar portion according to the mode?

or have custom screen set up, while 4 screen for 4 modes will extend ths custom screen?

Please guide.

Thank you

I recommend creating a class to encapsulate the status bar. Have a screen for each mode and in its constructor, call the setBanner (or maybe setTitle), passing an instance of the status bar. Each instance of screen will have its own instance of the status bar. With this approach, he has no need of a base class common screen (at least not for the good of the status bar).

Your second solution, pass on the parties non-status screen, seems to be more complex. Unless the status bar takes a lot of resources, it is not worth the complexity just to have a single instance of it.

Moreover, in the terminology of BlackBerry, the status of a screen area is inside. There is a banner area at the top, a title below area, and the main area is between the title and status. The main area is a vertical field Manager, and the other three can be null or not as you wish. There is usually a separator between the title and the main areas if you assign a title, but I think it depends on the theme.

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for