@Override
    protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
        super.onLayout(changed, left, top, right, bottom);
        if (width != getWidth() || height != getHeight()) {
            refreshImage();
        }
        width = getWidth();
        height = getHeight();
    }
@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