Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
ramagopinath
Posts: 13
Registered: ‎11-28-2011
My Device: 8110
My Carrier: Airtel

Creating appealing user interface for BB OS version 4.5

I would like to create a simple appealing user interface for a BB application wtth OS 4.5. I would like to change the background color of the screen, buttons, change the font size and color. Is it possible to do it. If so let me know how it could be done

Please use plain text.
Developer
simon_hain
Posts: 16,010
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: Creating appealing user interface for BB OS version 4.5

all possible, with the exception of the buttons, which are controlled by the theme.
you'll have to create custom buttons.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Contributor
ramagopinath
Posts: 13
Registered: ‎11-28-2011
My Device: 8110
My Carrier: Airtel

Re: Creating appealing user interface for BB OS version 4.5

Could you give few simple examples to demonstrate how this can be done

Please use plain text.
Developer
simon_hain
Posts: 16,010
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: Creating appealing user interface for BB OS version 4.5

for the background:
http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/ui/decor/BackgroundFactory.htm...
fontsize: setFont(getFont().derive...
font color: overwrite paint, call graphics.setColor, call super.paint
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Contributor
ramagopinath
Posts: 13
Registered: ‎11-28-2011
My Device: 8110
My Carrier: Airtel

Re: Creating appealing user interface for BB OS version 4.5

This works fine for BB OS 4.6 onwards. I wanted for BB OS 4.5 and below

Please use plain text.
Developer
simon_hain
Posts: 16,010
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: Creating appealing user interface for BB OS version 4.5

for the background you can utilize paintBackground (does not work with mainscreen, use an extra manager there).
all other APIs are available in 4.5
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.