使用直接块在Sketchware应用程序中将位图转换为可绘制对象 android.graphics.drawable.BitmapDrawable d = new android.graphics.drawable.BitmapDrawable(getResources(), bitmap);