I'm currently having an error when running this code.
- Code: Select all
@Override
protected void onDraw(Canvas canvas) {
Paint background = new Paint();
Paint forCircle = new Paint();
forCircle.setColor(color);
background.setColor(getResources().getColor(
R.color.puzzle_background));
Bitmap mBitmap = BitmapFactory.decodeResource(getResources(),R.drawable.icon);
canvas.drawBitmap(mBitmap, null, forCircle);
]
the main program is not attached in here, but the code above was triggered when I click draw button.
thanks a lot!
-rjuy


