Closed ghost closed 5 years ago
So I have found the solution - you need to create a BitmapDrawable from the input Drawable
Bitmap b = ((BitmapDrawable)image).getBitmap(); Bitmap bitmapResized = Bitmap.createScaledBitmap(b, 50, 50, false); return new BitmapDrawable(context.getResources(), bitmapResized);
So I have found the solution - you need to create a BitmapDrawable from the input Drawable