user interface - Blackberry 4.5 - How to click on a .jpg image? -
I am displaying a .jpg image in a bitmapfield; Adding it to a vertical field manager is showing, but I can not click on it.
I'm liking it ..
Bitmap bitmap = bitmap .getBitmapResource ("image.jpg"); Bitmapfield bitmapfield = new bitmapfield (bitmap, bitmapfield.focusable) {protected boolean navigationclick (integer position, int time) {// handle click event return true; }}; Vertical Field Manager vfm = New Vertical Field Manager (); Vfm.add (bitmapField); (Vfm_stamp);
But if I take a .png image
bitmap bitmap = bitmap .getBitmapResource ("image.png");
Why is it so clickable?
BlackBerry supports 4.5. JPG image format. It displays a .jpg image, so why not click it? I want to make it clickable
how to do it?
You can override the method onFocus ()
and select it The behavior changes.
You Netmant You can also create Bitmapubutan which will be net.rim.device.api.ui.File
You will need setChangeListener ()
your bitmapfield
Comments
Post a Comment