Bitmap bitmap = BitmapFactory.decodeResource(getResources(),R.drawable.liu1);// 将图片读取到bitmap中
image.setImageBitmap(bitmap); //将bitmap在image中显示
android将drawable文件夹中的图片读取到bitmap中
猜你喜欢
转载自blog.csdn.net/luoshen87/article/details/78713944
今日推荐
周排行