设置ImageView的大小


1) set adjustViewBounds to true
2) set maxWidth and maxHeight to 100
3) set the height and width layout params to WRAP_CONTENT.

android:adjustViewBounds="true"
android:maxHeight="100px"
android:maxWidth="100px"
android:layout_width="wrap_content"
android:layout_height="wrap_content"


你可能感兴趣的:(android)