Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import android.graphics.Path;
import android.graphics.RectF;

public class Main {
    public static void computeCircleSucSymbolPath(RectF contentRect, int sideLength, Path successSymbolPath) {
        successSymbolPath.moveTo(contentRect.left + sideLength * 0.24f, contentRect.top + sideLength * 0.47f);

        successSymbolPath.quadTo(contentRect.left + sideLength * 0.24f, contentRect.top + sideLength * 0.47f,
                contentRect.left + sideLength * 0.44f, contentRect.top + sideLength * 0.68f);

        successSymbolPath.quadTo(contentRect.left + sideLength * 0.44f, contentRect.top + sideLength * 0.68f,
                contentRect.left + sideLength * 0.73f, contentRect.top + sideLength * 0.35f);
    }
}