I am a puzzled about using src
or background
for an ImageView
.
I know the former means the content of this ImageView
and the latter means the background of the ImageView
.
But how to decide which one to use? I don't see the difference.
All views can take a background image.
The src
to an ImageView
has additional features:
adjustViewBounds
for setting bounds to match image dimensionsAnd more that you may find in the docs.