Android examples for Graphics:Path
create Down Triangle Path
//package com.java2s; import android.graphics.Path; public class Main { public static Path createDownTrianglePath(int aX, int aY, int aWidth, int aHeight) { Path path = new Path(); path.moveTo(aX, aY);/* w ww. j a va2 s . c om*/ path.lineTo(aX + aWidth, aY); path.lineTo(aX + (aWidth >> 1), aY + aHeight); path.close(); return path; } }