I have two ImageView
's in a RelativeLayout
, the first one is as large as the RelativeLayout
size (as background),and the second ImageView
has a small image, now I want to combine these to ImageView
's image into one by screenshot. not by combine two bitmap directly.
In the snippet below, I successfully take screenshot of the RelativeLayout
, but I found the image quality is not as good as the first ImageView
's bitmap, can anyone help me please?
view.setDrawingCacheEnabled(true);
view.setDrawingCacheBackgroundColor(Color.TRANSPARENT);
view.setDrawingCacheQuality(View.DRAWING_CACHE_QUALITY_HIGH);
Bitmap drawCache = view.getDrawingCache(true);