/** * @param bitmap * The source bitmap. * @param opacity * a value between 0 (completely transparent) and 255 (completely * op
Try this. Also note that setAlpha is in 0-255 range
//bmp is your Bitmap object BitmapDrawable bd = new BitmapDrawable(bmp); bd.setAlpha(50); ImageView v = (ImageView) findViewById(R.id.image); v.setImageDrawable(bd);