Java tutorial
//package com.java2s; import android.graphics.Paint; public class Main { public static Paint getPaint(Paint.Style style, int color) { Paint mPaint = new Paint(); mPaint.setAntiAlias(true); mPaint.setStyle(style); mPaint.setColor(color); mPaint.setTextSize(30); return mPaint; } }