"take screenshot of scrollview android programmatically" Code Answer's
You're definitely familiar with the best coding language Whatever that developers use to develop their projects and they get all their queries like "take screenshot of scrollview android programmatically" answered properly. Developers are finding an appropriate answer about take screenshot of scrollview android programmatically related to the Whatever coding language. By visiting this online portal developers get answers concerning Whatever codes question like take screenshot of scrollview android programmatically. Enter your desired code related query in the search bar and get every piece of information about Whatever code related question on take screenshot of scrollview android programmatically.
take screenshot of scrollview android programmatically
Bitmap bitmap = getBitmapFromView(scrollview, scrollview.getChildAt(0).getHeight(), scrollview.getChildAt(0).getWidth());
//create bitmap from the ScrollView
private Bitmap getBitmapFromView(View view, int height, int width) {
Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
Canvas canvas = new Canvas(bitmap);
Drawable bgDrawable = view.getBackground();
if (bgDrawable != null)
bgDrawable.draw(canvas);
else
canvas.drawColor(Color.WHITE);
view.draw(canvas);
return bitmap;
}
Source: stackoverflow.com
All those coders who are working on the Whatever based application and are stuck on take screenshot of scrollview android programmatically can get a collection of related answers to their query. Programmers need to enter their query on take screenshot of scrollview android programmatically related to Whatever code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about take screenshot of scrollview android programmatically for the programmers working on Whatever code while coding their module. Coders are also allowed to rectify already present answers of take screenshot of scrollview android programmatically while working on the Whatever language code. Developers can add up suggestions if they deem fit any other answer relating to "take screenshot of scrollview android programmatically". Visit this developer's friendly online web community, CodeProZone, and get your queries like take screenshot of scrollview android programmatically resolved professionally and stay updated to the latest Whatever updates.