Code example for Drawable

Methods: getPadding

0
        final int distanceToBottom = bottomEdge - (anchorPos[1] + anchor.getHeight()) - yOffset;
        final int distanceToTop = anchorPos[1] - displayFrame.top + yOffset;
        int returnedHeight = Math.max(distanceToBottom, distanceToTop);
        if (mBackground != null) {
            mBackground.getPadding(mTempRect);
            returnedHeight -= mTempRect.top + mTempRect.bottom;
        } 
        return returnedHeight;
    } 
 
    public int getSoftInputMode() { 
        return mSoftInputMode;
    } 
 
    public int getWidth() { 
        return mWidth;
    } 
 
    public int getWindowLayoutType() { 
        return mWindowLayoutType;
    }