Piasy / BigImageViewer

Big image viewer supporting pan and zoom, with very little memory usage and full featured image loading choices. Powered by Subsampling Scale Image View, Fresco, Glide, and Picasso. Even with gif and webp support! 🍻
MIT License
3.98k stars 400 forks source link

在电视显示的时候,图片的左边有间隙 #212

Closed paofan closed 3 years ago

paofan commented 3 years ago

电视分辨率3840*2160,目前只有一台电视是这样,其他同样分辨率的电视却可以全屏显示。 BigImageView bigImageView = new BigImageView(context); ViewGroup.LayoutParams params = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT); bigImageView.setLayoutParams(params); bigImageView.setInitScaleType(BigImageView.INIT_SCALE_TYPE_FIT_XY); bigImageView.setOptimizeDisplay(false);

Piasy commented 3 years ago

代码都是开源的,自己调试一下吧。