I have created 4 tabs containing 4 images at the screen bottom in BlackBerry 9700. I want to know how do I resize these tabs dynamically to suit other blackberry screens. When I test the same code in 9800, I can see only 3 tabs and the fourth one goes out of visibility. I know resizing image dynamically for Background screens but how to do the same for tabs or image buttons?
Share
you have to Resize your all
Tabbarimages depends onDevice widthusingResizeBitmapClass.Ex:
Bitmap tab = Bitmap.getBitmapResource("Your image path")Bitmap tab1 = ResizeBitmap.resizeBitmap(tab, Display.getWidth()/4, tab.getHeight());
Resize all your four images like above. Than add four images to your
Horizontalfieldmanager. Overridesublayout()method and set its width & height.Now you can see all tab perfect in all device.