Friday, April 27, 2012
PictureScroll in Blackberry
private PictureScrollField _pictureScrollField;
ScrollEntry[] entries = new ScrollEntry[ 4 ];
entries[0] = new ScrollEntry(Bitmap.getBitmapResource("image1.jpg"), "BlackBerry", "image 1");
entries[1] = new ScrollEntry(Bitmap.getBitmapResource("image2.jpg"), "Blue logo", "image 2");
entries[2] = new ScrollEntry(Bitmap.getBitmapResource("image3.jpg"), "Black logo", "image 3");
entries[3] = new ScrollEntry(Bitmap.getBitmapResource("image3.jpg"), "Building", "image 4");
_pictureScrollField = new PictureScrollField(150, 100);
_pictureScrollField.setData(entries, 0);
add(_pictureScrollField);
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment