Notes ImageView (image view) class:

The ImgeView component inherits
the common XML attributes supported by the View class ImageView:

android: adjustViewBounds whether to adjust the aspect ratio is used to set ImageView own borders to keep the picture displayed
android: maxHeight ImageView set the maximum height, you need to set android: adjustViewBounds property value is true, otherwise it does not work
android: maxWidth set ImageView The maximum width of the android:adjustViewBounds attribute value needs to be set to true, otherwise it will not work
android:scaleType is used to set how the displayed picture is scaled or moved to fit the size of the ImageView
android:src is used to set the Drawable object displayed by the ImageView ID
android:tint is used to color pictures

Guess you like

Origin blog.csdn.net/qq_42823109/article/details/93451183