Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.graphics.Canvas;
import android.graphics.Color;

import android.graphics.Paint;

public class Main {
    static int mBorderThickness = 2;

    public static void drawCircleBorder(Canvas canvas, int radius, int w, int y) {
        Paint paint = new Paint();
        paint.setAntiAlias(true);
        paint.setFilterBitmap(true);
        paint.setDither(true);
        paint.setColor(Color.WHITE);
        paint.setStyle(Paint.Style.STROKE);
        paint.setStrokeWidth(mBorderThickness);
        canvas.drawCircle(w / 2, y / 2, radius, paint);
    }
}