最佳答案
res/drawable/test.png (R.drawable.test).Drawable的函数,例如mButton.setCompoundDrawables().
那么如何将图像资源转换为Drawable呢?