Here you can find the source of getLineErrorPaint(Context context)
public static Paint getLineErrorPaint(Context context)
//package com.java2s; import android.content.Context; import android.graphics.Paint; import android.util.TypedValue; public class Main { public static final int DEFAULT_LINE_THICKNESS = 5; public static final int DEFAULT_LINE_ERROR_COLOR = 0x4500CCEE; public static Paint getLineErrorPaint(Context context) { final float lineThicknessPx = TypedValue.applyDimension( TypedValue.COMPLEX_UNIT_DIP, DEFAULT_LINE_THICKNESS, context.getResources().getDisplayMetrics()); final Paint borderPaint = new Paint(); borderPaint.setColor(DEFAULT_LINE_ERROR_COLOR); borderPaint.setStrokeWidth(lineThicknessPx); borderPaint.setStyle(Paint.Style.STROKE); borderPaint.setAntiAlias(true);//from ww w .ja v a2s. co m return borderPaint; } }