Android examples for Graphics:Path
create Up Triangle Path
//package com.java2s; import android.graphics.Path; public class Main { public static Path createUpTrianglePath(int aX, int aY, int aWidth, int aHeight) { Path path = new Path(); path.moveTo(aX, aY + aHeight);/*from ww w . java2 s. c o m*/ path.lineTo(aX + (aWidth >> 1), aY); path.lineTo(aX + aWidth, aY + aHeight); path.close(); return path; } }