<分区>
Possible Duplicate:
What is the difference between src and background of ImageView
android:background
和 android:src
有什么区别?他们的工作原理一样吗?
<分区>
Possible Duplicate:
What is the difference between src and background of ImageView
android:background
和 android:src
有什么区别?他们的工作原理一样吗?
最佳答案
android:background
存在于所有 View 中。顾名思义,这就是背景中的内容。
android:src
存在于 ImageViews
及其子类中。您可以将其视为前景。因为 ImageView
是 View
的子类,所以您甚至可以为此使用 android:background
。
关于android - 差异 : android:background and android:src?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9458774/