6
나는 drawable의 경계를 원하지만 getBounds 또는 copyBounds 메서드를 사용하여 모든 Rect (0, 0 - 0, 0)를 반환합니다. 이android 드로어 블 getBounds 반환 Rect (0, 0 - 0, 0)
Drawable marker = getResources().getDrawable(
R.drawable.tbar_single_pressed);
Rect copyRect = marker.copyBounds();
Rect getRect= marker.getBounds();
같은 코드는 다음 결과 copyRect이 사각형 (0, 0 - 0, 0) 에 getRect는 사각형은 (0, 0 - 0, 0)
이유는 무엇입니까? 그들이 그려하지 않는 한 드로어 블 Drawable은 차원이없는