Android 把图片资源获取成Bitmap格式使用。
Bitmap bitmap = ((BitmapDrawable)getResources().getDrawable(R.mipmap.workstack)).getBitmap();
Android 把图片资源获取成Bitmap格式使用。
Bitmap bitmap = ((BitmapDrawable)getResources().getDrawable(R.mipmap.workstack)).getBitmap();