create Right Arrow Path - Android Graphics

Android examples for Graphics:Path

Description

create Right Arrow Path

Demo Code


//package com.java2s;

import android.graphics.Path;

public class Main {

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

        path.moveTo(aX, aY);/*www  .  j a  va  2s .c  o m*/
        path.lineTo(aX + aWidth, aY + (aHeight >> 1));
        path.lineTo(aX, aY + aHeight);

        return path;
    }
}

Related Tutorials