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

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

    return getDrawable().getIntrinsicWidth();
  }