在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)