adjustViewBounds
2019-01-17 本文已影响0人
KevinLeeGo
android:adjustViewBounds属性
用于保持宽高比
例子:
图片宽度填满,高度自适配
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scaleType="fitXY"
android:adjustViewBounds="true" />