This tool makes a number of screenshots, scrolling screen content automatically between each shot
Add this in your root build.gradle file (not your module build.gradle file):
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
Add this to your module's build.gradle file (make sure the version matches the JitPack badge above):
dependencies {
...
implementation 'com.github.peter1492:LongScreenshot:1.0'
}
BigScreenshot.ProcessScreenshot
Create Class object
x will be (Recycleview/ NestedScrollview / Scrollview ..)
y will be (parent ViewGroup Container (LinearLayout/FrameLayout etc..))
BigScreenshot longScreenshot = new BigScreenshot(this, x, y);
longScreenshot.startScreenshot();
Stop Screenshot process
longScreenshot.stopScreenshot();
If all goes fine bitmap will be recieved
@Override
public void getScreenshot(Bitmap bitmap) {}