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
Developer
Posts: 242
Registered: ‎02-19-2013
My Device: 9500
My Carrier: _

How to set the background image in horizontal field manager.

I have a bitmap in which I want to set the background image in Horizontal Field Manager. So How can I set this.

Highlighted
Contributor
Posts: 16
Registered: ‎02-13-2013
My Device: Blackberry 9900
My Carrier: Aircel

Re: How to set the background image in horizontal field manager.

[ Edited ]
Override the paint() method of Manager to set background image . Use graphics.drawBitmap() method inside the paint method . make sure the image you are using is the width and height of manager's sublayout.
Developer
Posts: 16,984
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to set the background image in horizontal field manager.

using http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/ui/decor/BackgroundFactory.htm... is usually easier
----------------------------------------------------------
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