Example #1
0
  public int getHeightBitmap() {
    if (getDrawable() == null) {
      LogUtil.error("Drawable is null, cannot obtain height", getClass().getCanonicalName());
      return 0;
    }

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

    return getDrawable().getIntrinsicWidth();
  }