I have one BitmapField
that display image into screen. BitmapField is added into VerticalFieldManager
and finally this manager is added to mainscreen.
porblem is that if my image is larger than screen size than i have not able scroll image horizontally or vertically.
My code is below :-
VerticalFieldManager ver = new VerticalFieldManager(VerticalFieldManager.VERTICAL_SCROLL|VerticalFieldManager.VERTICAL_SCROLLBAR|VerticalFieldManager.HORIZONTAL_SCROLL|VerticalFieldManager.HORIZONTAL_SCROLLBAR);
Bitmap enc_img = Bitmap.getBitmapResource("4.png");
btm_fld = new BitmapField(enc_img);
ver.add(btm_fld);
add(ver);
What i am doing wrong here.
thanks in advanced.
Following code may help you to get the
VerticalFieldManager
scrollable:But the
BitmapField
itself will not be scrollable.Link to an article in Blackberry Development Knowledge Base, Create a scrollable image field.