I have built a table which is basically done by HorizontalScrollView
inside a ScrollView
. I made the user can edit the fields.
Now I want to save the table on a screen, jpg, png, pdf or anything else.
The problem is - the table is nearly always bigger than the screen.
Is there a way to make a screenshot of the whole ScrollView
layout? If not what do you think can do the job?
Actually I found the answer:
Using @softwaresupply answer causes problem in my case where my view was getting redrawn and getting completely white. There is an easier solution to get screenshot where you don't even have to supply width and height as parameters. Use Drawing Cache.
this work for me, hope it helpful for you too.
//set button click listener
//then you have to create two method
After add this code into your app, run the app and check your local storage, you have created screen shot of whole page.