Java Code Examples for com.facebook.drawee.view.DraweeView#getPaddingTop()

The following examples show how to use com.facebook.drawee.view.DraweeView#getPaddingTop() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Attacher.java    From PicKing with Apache License 2.0 5 votes vote down vote up
private int getViewHeight() {
    DraweeView<GenericDraweeHierarchy> draweeView = getDraweeView();
    if (draweeView != null) {
        return draweeView.getHeight()
                - draweeView.getPaddingTop()
                - draweeView.getPaddingBottom();
    }
    return 0;
}
 
Example 2
Source File: Attacher.java    From CanPhotos with Apache License 2.0 5 votes vote down vote up
private int getViewHeight() {
    DraweeView<GenericDraweeHierarchy> draweeView = getDraweeView();
    if (draweeView != null) {
        return draweeView.getHeight()
                - draweeView.getPaddingTop()
                - draweeView.getPaddingBottom();
    }
    return 0;
}
 
Example 3
Source File: Attacher.java    From SprintNBA with Apache License 2.0 5 votes vote down vote up
private int getViewHeight() {
    DraweeView<GenericDraweeHierarchy> draweeView = getDraweeView();
    if (draweeView != null) {
        return draweeView.getHeight()
                - draweeView.getPaddingTop()
                - draweeView.getPaddingBottom();
    }
    return 0;
}
 
Example 4
Source File: Attacher.java    From PhotoDraweeView with Apache License 2.0 5 votes vote down vote up
private int getViewHeight() {
    DraweeView<GenericDraweeHierarchy> draweeView = getDraweeView();
    if (draweeView != null) {
        return draweeView.getHeight()
                - draweeView.getPaddingTop()
                - draweeView.getPaddingBottom();
    }
    return 0;
}
 
Example 5
Source File: Attacher.java    From TLint with Apache License 2.0 5 votes vote down vote up
private int getViewHeight() {
    DraweeView<GenericDraweeHierarchy> draweeView = getDraweeView();
    if (draweeView != null) {
        return draweeView.getHeight() - draweeView.getPaddingTop() - draweeView.getPaddingBottom();
    }
    return 0;
}