src和ImageView的背景之间的区别是什么区别、背景、src、ImageView

2023-09-12 06:22:59 作者:$*虔沫

我有些不解使用SRC或背景的的ImageView 。我知道前者是指这个内容的ImageView ,后者是指的ImageView 的背景。但是,如何检测使用哪一个?我看不出差别。

I am a little puzzled with 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 detect which one to use? I don't see the difference.

推荐答案

所有意见可以采取的背景图像。

All views can take a background image.

的src 的ImageView 有附加功能:

在不同的缩放类型 adjustViewBounds 设定界限,以匹配图像尺寸 在一些转换,如α-设置 different scaling types adjustViewBounds for setting bounds to match image dimensions some transformations such as alpha-setting

和更多的,你会发现在的文档。

And more that you may find in the docs.