lImgView.setLayoutParams(new Gallery.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
lImgView.setImageBitmap(lBmp);
lImgView.setScaleType(ImageView.ScaleType.CENTER);
lImgView.setPadding(0, 0, 0, 0);
final Paint bck = new Paint();
bck.setARGB(0xff, 0x80, 0x80, 0x80);
lCanvas.drawRect(0, 0, width, height, bck);
final Paint p = new Paint();
p.setARGB(0xff, 0xff, 0x00, 0xff);
mLinearLayout.addView(lImgView);
setContentView(mLinearLayout);
lImgView.setOnTouchListener(new OnTouchListener() {