create Right Arrow Path - Android android.graphics

Android examples for android.graphics:Path

Description

create Right Arrow Path

Demo Code

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);//from   w w  w. java2 s .  co m
    path.lineTo(aX + aWidth, aY + (aHeight >> 1));
    path.lineTo(aX, aY + aHeight);

    return path;
  }

}

Related Tutorials