public int getHeightBitmap() { if (getDrawable() == null) { LogUtil.error("Drawable is null, cannot obtain height", getClass().getCanonicalName()); return 0; } return getDrawable().getIntrinsicHeight(); }
public int getWidthBitmap() { if (getDrawable() == null) { LogUtil.error("Drawable is null, cannot obtain width", getClass().getCanonicalName()); return 0; } return getDrawable().getIntrinsicWidth(); }