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
Posts: 15
Registered: ‎11-14-2012
My Device: 9220
My Carrier: cellone
Accepted Solution

Focus not getting in BitmapField

Hi

    In my application am using a bitmapfield to display images from webservice. In that i need to add listener to display details on click of image. But am unable to get focus on bitmapfield. Please help me in this its very urgent

 

 

Thanks in Advance

Highlighted
Developer
Posts: 17,011
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Focus not getting in BitmapField

a bitmapfield is not focusable by default, you need to add the FOCUSABLE style on creation or overwrite isFocusable to return true.
You also need to add something that indicates that the picture is focused, for example by drawing a border or changing the alpha value in drawFocus or onFocus/onUnfocus.
----------------------------------------------------------
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
Contributor
Posts: 15
Registered: ‎11-14-2012
My Device: 9220
My Carrier: cellone

Re: Focus not getting in BitmapField

Thanks. It worked for me