// This rounds corners of image as well as textview and darkens latters background public void updateImage(Bitmap image) { LayoutParams params = new LayoutParams(width, LayoutParams.WRAP_CONTENT); setLayoutParams(params); // Image Bitmap bm; bm = BitmapUtils.getRoundedCornerBitmap(ctx, image, 0); mContentView.setImageBitmap(bm); // TextView background mTextView = (TextView) findViewById(R.id.mit150CorridorTV); bm = BitmapUtils.createRoundedBottomBitmap(ctx, width, 50, color); BitmapDrawable bd = new BitmapDrawable(bm); mTextView.setBackgroundDrawable(bd); }