Glide.with(mContext) .load(path) .override(Target.SIZE_ORIGINAL, Target.SIZE_ORIGINAL) .into(imageView);
.override(Target.SIZE_ORIGINAL, Target.SIZE_ORIGINAL)
就是加上这个属性,ImageView我设置了
<ImageView android:id="@+id/float_image" android:layout_width="match_parent" android:layout_height="match_parent" android:scaleType="fitCenter" android:src="@color/picture_color_e0ff6100" />
然后没问题
借鉴于:https://blog.csdn.net/sinat_26710701/article/details/89384579