如何设置
ImageButton
属性。app:srcCompat="@drawable/pic"
编程方式?
类似于 myImageButton.setBackgroundResource(R.drawable.eng2);
,但使用 app:srcCompat
属性。