在layout文件中,设置IamgeView的最大(最小)高度(宽度)时,需要同时设置android:adjustViewBounds="true",这样设置才会生效。在代码中设置时,需要setAdjustViewBounds为true。一个layout的实例:
android:layout_height="wrap_content"
android:maxHeight="200dp"
android:adjustViewBounds="true"
2.手机硬件加速模式不支持加载大图(828*9072-max:8192*8192)