Replacing Bitmap with Drawable in Drag and Drop Example
问题 I'm attempting to modify a drag and drop gridView example to use a specific drawable instead of the bitmap used in the example. I believe I'll need to edit the line: Bitmap bmp = Bitmap.createBitmap(150, 150, Bitmap.Config.RGB_565); and change it to something such as Bitmap bmp = R.drawable.sqwhite; but I don't think that's exactly what I'm looking for. Any suggestions? Source: public class DraggableGridViewSampleActivity extends Activity { static Random random = new Random(); static String[]