<com.example.platform.ProgressImageView
android:id="@+id/k1"
android:layout_width="150dp"
android:layout_height="150dp"
android:layout_marginLeft="100dp"
android:background="@mipmap/xu1" /
这是定义的ImageView,在MainActivity中使用
image.setBackgroundResource(R.minmap.background);
但是效果是下面这样,是叠在一起的,不是替换,
image.setBackgroundResource(null);
image.setBackgroundResource(R.minmap.background);
你既然使用ImageView了,为啥不用src,反而要用背景?