How to get WebView screenshot
问题 how to get the full page WebView Screenshot? snapShot= webView.capturePicture(); capture = Bitmap.createBitmap(snapShot.getWidth(),snapShot.getHeight(), Bitmap.Config.ARGB_8888); Canvas canvas = new Canvas(capture); snapShot.draw(canvas); these codes not used in xiaomi 回答1: You can use this code, where mPath is path to save file, and mMainView is view to capture. If you want to change file type or compress rate, modify below code. bitmap.compress(Bitmap.CompressFormat.PNG, 90, fout); private