Thanks for the help. But beginners like me need some kind of specific code. I tried and worked for me as follows.
Bitmap b = Bitmap.createBitmap(getWidth(), getHeight(), Bitmap.Config.ARGB_8888); layerDrawable.setBounds(0, 0, getWidth(), getHeight()); layerDrawable.draw(new Canvas(b));
Ultimately, b (bitmap) is the desired combined bitmap.
Anjum shrimali
source share