create Down Arrow Path - Android android.graphics

Android examples for android.graphics:Path

Description

create Down Arrow Path

Demo Code

import android.graphics.Path;

public class Main {

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

    path.moveTo(aX, aY);/*from  w  w w . j  a va  2  s.  co m*/
    path.lineTo(aX + (aWidth >> 1), aY + aHeight);
    path.lineTo(aX + aWidth, aY);

    return path;
  }

} 

Related Tutorials