02-27-2013 05:01 AM
hello, i have made an application that should be run on os 5,6,7
this application run smooth on os 6 and 7 but for os 5 its background wont show up. here my snippet code
this.add(hfm); Bitmap footerBGBitmap = Bitmap.getBitmapResource("footer.png"); Bitmap footerBGResized = GPATools.ResizeTransparentBitmap(footerBGBitmap, footerBGBitmap.getWidth(), hfm.getPreferredHeight(), Bitmap.FILTER_LANCZOS, Bitmap.SCALE_STRETCH); Background footerBG = BackgroundFactory.createBitmapBackground(footerBGR
esized,Background.POSITION_X_LEFT,Background.POSIT ION_Y_TOP,Background.REPEAT_HORIZONTAL); hfm.setBackground(footerBG);
this field manager will be placed on setStatus()
what i should change to the code to make my background appears?
02-27-2013 05:25 AM
02-27-2013 08:47 PM - edited 02-27-2013 08:55 PM
actually the background is appears on the left, but its can not repeat horizontally
i tried to enlarge the image same as the display weight and its appears. so the problem is that Background.REPEAT_HORIZONTAL syntax is not working on blackberry 5.
what syntak i should used on os 5 to make my background repeat horizontally then?