このコードには何がありませんか?この同じコードはICSで動作します。 API 8では、スクロールが表示され、一部のコンテンツは画面から消えます。この場合、描画キャッシュを取得する方法は?`getDrawingCache`を呼び出すと、スクロールが有効になったときにnullが返されます
コード:
TableLayout page = (TableLayout) findViewById(R.id.page);
page.setDrawingCacheEnabled(true);
page.buildDrawingCache();
// getDrawingCache returns null...
Bitmap pageBmp = Bitmap.createBitmap(page.getDrawingCache(true));
page.destroyDrawingCache();
page.setDrawingCacheEnabled(false);
可能な複製を使用し
-null-only-null) –
類似したhttp://stackoverflow.com/questions/2339429/android-view-getdrawingcache-returns-null-only-null –