I have LinearLayout with some detail and it has RecyclerView in it
LinearLayout
|
Some Information in LinearLayout
|
RecyclerView
I am getting bitmap of LinearLayout using this code
public Bitmap getBitmapFromView(View view) { // view is linearlayout
Bitmap bitmap = Bitmap.createBitmap(view.getWidth(),
view.getHeight(), Bitmap.Config.ARGB_8888);
Canvas canvas = new Canvas(bitmap);
view.draw(canvas);
return bitmap;
}
I am successfully getting Image of view but recycler view is getting cut . It does not capture all detail that is in recycler view container .
Is it possible to capture bitmap of linear layout with all the row detail of recyclerview?