private void refreshImage() {
        if (!isAttachedToWindow()) {
            return;
        }
        if (screenWidth != getMeasuredWidth() || screenHeight != getMeasuredHeight()) {
            screenWidth = getMeasuredWidth();
            screenHeight = getMeasuredHeight();
            doScreenshotActivityAndZoom();
        }
    }
@author: Kongzue
@github: https://github.com/kongzue/
@homepage: http://kongzue.com/
@mail: myzcxhh@live.cn
@createTime: 2019/11/17 23:53
DialogX/src/main/java/com/kongzue/dialogx/util/views/ActivityScreenShotImageView.java