将ImageView的宽或者高限定,按照比例展示图片,搜索得到的结果是:
android:adjustViewBounds 是否保持宽高比。需要与maxWidth、MaxHeight一起使用,否则单独使用没有效果。
我只用了android:adjustViewBounds 属性,并没有与max###一同使用。
将ImageView的宽或者高限定,按照比例展示图片,搜索得到的结果是:
android:adjustViewBounds 是否保持宽高比。需要与maxWidth、MaxHeight一起使用,否则单独使用没有效果。
我只用了android:adjustViewBounds 属性,并没有与max###一同使用。