Skip to content

Commit

Permalink
dots size according to dos
Browse files Browse the repository at this point in the history
  • Loading branch information
naman14 committed Aug 29, 2015
1 parent 99358e1 commit c08fd77
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Expand Up @@ -55,7 +55,7 @@ protected void onDraw(Canvas canvas) {
canvas.drawBitmap(bitmapx, 0, 0, p);

paint.setColor(Color.WHITE);
canvas.drawCircle(70, 70, 15, paint);
canvas.drawCircle(getDimensionInPixel(25), getDimensionInPixel(25), getDimensionInPixel(5), paint);

Paint ringPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
ringPaint.setStyle(Paint.Style.STROKE);
Expand Down
Expand Up @@ -65,15 +65,15 @@ protected void onDraw(Canvas canvas) {
paint.setAntiAlias(true);
canvas.drawRect(rectBackground, paint);

Rect rectWhite = new Rect(50, getHeight() / 2 - 10, 180, getHeight() / 2 + 10);
Rect rectWhite = new Rect(getDimensionInPixel(20), getHeight() / 2 - getDimensionInPixel(4), getDimensionInPixel(60), getHeight() / 2 + getDimensionInPixel(4));
paint.setColor(Color.WHITE);
paint.setStyle(Paint.Style.FILL);
paint.setAntiAlias(true);
canvas.drawRect(rectWhite, paint);

canvas.drawCircle(getWidth() - 300, getHeight() / 2, 25, paint);
canvas.drawCircle(getWidth() - 200, getHeight() / 2, 25, paint);
canvas.drawCircle(getWidth() - 100, getHeight() / 2, 20, paint);
canvas.drawCircle(getWidth() - getDimensionInPixel(80), getHeight() / 2, getDimensionInPixel(6), paint);
canvas.drawCircle(getWidth() - getDimensionInPixel(55), getHeight() / 2, getDimensionInPixel(6), paint);
canvas.drawCircle(getWidth() - getDimensionInPixel(30), getHeight() / 2, getDimensionInPixel(4), paint);

}
}
Expand Down

0 comments on commit c08fd77

Please sign in to comment.