private int getImageViewHeight(ImageView imageView) {
        return imageView.getHeight() - imageView.getPaddingTop() - imageView.getPaddingBottom();
    }
Calculate Matrix for FIT_CENTER

@param drawable - Drawable being displayed
main/src/main/java/com/quxianggif/common/view/photoview/PhotoViewAttacher.java