create Left Arrow Path - Android Graphics

Android examples for Graphics:Path

Description

create Left Arrow Path

Demo Code


//package com.java2s;

import android.graphics.Path;

public class Main {
    public static Path createLeftArrowPath(int aX, int aY, int aWidth,
            int aHeight) {
        Path path = new Path();

        path.moveTo(aX + aWidth, aY);//ww  w  .j a  v  a 2  s  .c  om
        path.lineTo(aX, aY + (aHeight >> 1));
        path.lineTo(aX + aWidth, aY + aHeight);

        return path;
    }
}

Related Tutorials