int width = bar.getWidth() ;//상단 바 레이아웃 크기
int height = bar.getHeight() ;//상단 바 레이아웃 크기
int width_container = container.getWidth() ;//캡쳐할 레이아웃 크기
int height_container = container.getHeight() ;//캡쳐할 레이아웃 크기
container.setDrawingCacheEnabled(true);
container.measure(width_container,height_container);
Log.d("[가로]", " : " + width);
Log.d("[세로]", " : " + height);
Log.d("[가로container]", " : " + width_container);
Log.d("[세로container]", " : " + height_container);
container.layout(0,105,480, 1139);
container.buildDrawingCache(true);
Bitmap captureView = Bitmap.createBitmap(container.getDrawingCache());
Log.d("[screenshot]", " : " + container.getDrawingCache());
ontainer.layout(0,105,480, 1139);
이 부분에서 0 105 480 빼고 마지막 값이 900을 넘어가면 캡쳐가 안됩니다.
레이아웃높이 값인데 왜 그러는건지 모르겠습니다..
높이 값을 출력해봤는데 1034 로 나옵니다. 근데 왜 900까지 밖에 안되는지도무지 이유를 모르겠씁니ㅏㄷ.
2.2 프로요 기기에서는 잘되던데..
제한같은게 걸려있나요? 옵티머스 Ex 아이스크림샌드위치 입니다.
로그캣은똑같이
Bitmap captureView = Bitmap.createBitmap(container.getDrawingCache());
이부분에서 에러가 나구요. 겟 드로잉캐쉬 널 값입니다.