이 코드에는 무엇이 누락 되었습니까? 이 동일한 코드는 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);
가능한 중복 (http://stackoverflow.com/questions/2339429/android-view-getdrawingcache-returns -null-only-null) –
유사 http://stackoverflow.com/questions/2339429/android-view-getdrawingcache-returns-null-only-null –