Code example for Paint.FontMetricsInt

    private final Paint mTextBackgroundPaint;
    private final Paint mTextLevelPaint;
    private final Paint mPaint;
    private final Paint mTargetPaint;
    private final Paint mPathPaint;
    private final FontMetricsInt mTextMetrics = new FontMetricsInt();
    private int mHeaderBottom;
    private boolean mCurDown;
    private int mCurNumPointers;
    private int mMaxNumPointers;
    private final ArrayList<PointerState> mPointers
             = new ArrayList<PointerState>();
    private boolean mPrintCoords = true;
    public PointerLocationView(Context c) {
        mVC = ViewConfiguration.get(c);
        mTextPaint = new Paint();
Connect your IDE to all the code out there  Get Codota for Java