Maybe i'm missing something here but shouldn't the third line in
AndroidGraphics.drawRect() read:
canvas.drawRect(x, y, x+width -1, y + height -1, paint);
instead of the third input being y + width -1
So:
@Override
public void drawRect(int x, int y, int width, int height, int color) {
paint.setColor(color);
paint.setStyle(Style.FILL);
canvas.drawRect(x, y, x + width - 1, y + height - 1, paint);
}
instead of
@Override
public void drawRect(int x, int y, int width, int height, int color) {
paint.setColor(color);
paint.setStyle(Style.FILL);
canvas.drawRect(x, y, x + width - 1, y + width - 1, paint);
}
?
Original issue reported on code.google.com by fox.petr...@gmail.com on 3 Feb 2012 at 8:26
Original issue reported on code.google.com by
fox.petr...@gmail.com
on 3 Feb 2012 at 8:26