Set the window surface to 32-bit drawing mode:

getWindow().setFormat(PixelFormat.RGBA_8888);

Set a drawable’s preferred drawing mode to 32 bits:

BitmapFactory.Options opts = new BitmapFactory.Options();
opts.inPreferredConfig = Bitmap.Config.ARGB_8888;

Leave a Reply

preload preload preload