I want to get a screenshot in a scrollable view (ViewPager), but I´m only getting a image from what is in the screen.
I have a Viewpager with two childrens
android.support.v4.view.PagerTitleStrip
NoSaveStateFrameLayout
I´m using this code to get the screenshot
private Bitmap screenShot(View view) {
Bitmap capture = null;
view.setDrawingCacheEnabled(true);
capture = Bitmap.createBitmap(view.getDrawingCache());
view.setDrawingCacheEnabled(false);
return capture;
}
I need to capture the hole content, the scrollable content that is not in screen yet.