标签:
只需三行代码:
Resources resources = getBaseContext().getResources();
Drawable imageDrawable = resources.getDrawable(R.drawable.background_image); //图片在drawable目录下
mImageView.setBackgroundDrawable(imageDrawable);
版权声明:本文为博主原创文章,未经博主允许不得转载。
标签:
原文地址:http://blog.csdn.net/qq_16912257/article/details/47776851