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
Trusted Contributor
Posts: 176
Registered: ‎04-12-2012
My Device: Bold 9780 & Curve 8250
My Carrier: vodacom
Accepted Solution

Adding a theme to an app

Hi all,

 

I am developing for OS5+ , using eclipse Helios 1.5.0. I would like to know if it is possible to add a theme into my app that I am writting (Java) . Please can you guys sive me some helpful links if you know of any.

 

Many Thanks

 

Developer
Posts: 16,998
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Adding a theme to an app

you would have to implement your own mechanism for that, like dynamic colors, sizes and backgrounds.
----------------------------------------------------------
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
Trusted Contributor
Posts: 176
Registered: ‎04-12-2012
My Device: Bold 9780 & Curve 8250
My Carrier: vodacom

Re: Adding a theme to an app

Will I be able to create like an image that can be added to the mainscreen of a blackberry?

 

Developer
Posts: 16,998
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Adding a theme to an app

what do you mean with "create"? usually images are created somewhere else and either provided with the app or downloaded dynamically.
you could create an empty bitmap and paint on it using graphics.
----------------------------------------------------------
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
Trusted Contributor
Posts: 176
Registered: ‎04-12-2012
My Device: Bold 9780 & Curve 8250
My Carrier: vodacom

Re: Adding a theme to an app

okay, can i write some sort of code that will allow me to add the bitmap to my Phone(You know the blackberry clock widgets add big clocks to the Phone's Main Screen), could I do that? 

Developer
Posts: 16,998
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Adding a theme to an app

you can use
http://www.blackberry.com/developers/docs/7.1.0api/net/rim/blackberry/api/homescreen/HomeScreen.html...
to set a background image.
most things a real theme does are not possible programatically, unless you want to change stuff within your own app, as you control that.
----------------------------------------------------------
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
Trusted Contributor
Posts: 176
Registered: ‎04-12-2012
My Device: Bold 9780 & Curve 8250
My Carrier: vodacom

Re: Adding a theme to an app

"most things a real theme does are not possible programatically, unless you want to change stuff within your own app, as you control that."

 

Thank you Simon, this is what I was looking for.