我有一个ImageView
<ImageView
android:id="@+id/auto"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10sp"
android:src="@drawable/auto" />
如何在onCreate for Activity中为此图像添加布局?例如,我想为此图像添加背景。感谢。
答案 0 :(得分:1)
将其封闭在布局中,并为布局添加背景。