PhotoViewAttacher.java 文件源码

java
阅读 21 收藏 0 点赞 0 评论 0

项目:GCSApp 作者:
private void checkImageViewScaleType() {
    ImageView imageView = getImageView();

    /**
     * PhotoView's getScaleType() will just divert to this.getScaleType() so
     * only call if we're not attached to a PhotoView.
     */
    if (null != imageView && !(imageView instanceof PhotoView)) {
        if (imageView.getScaleType() != ScaleType.MATRIX) {
            throw new IllegalStateException(
                    "The ImageView's ScaleType has been changed since attaching a PhotoViewAttacher");
        }
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号