Code example for Gallery.LayoutParams

0
			i.setImageURI(pic);
 
			Bitmap bm = BitmapFactory.decodeFile(pic.getPath());
 
			i.setImageBitmap(bm);
			i.setLayoutParams(new Gallery.LayoutParams(LayoutParams.FILL_PARENT - 50, LayoutParams.FILL_PARENT - 50));
			i.setScaleType(ImageView.ScaleType.FIT_XY);
			return i;
		} 
 
	} 
 
	/** 
	 *  
	 * @author J-Tesseract 
	 *  
	 * Task to be run when timer is fired 
	 * 
	 */ 
	public class RemindTask extends TimerTask {
		int galleryposition = 0;