create Down Arrow Path - Android Graphics

Android examples for Graphics:Path

Description

create Down Arrow Path

Demo Code


//package com.java2s;

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

        return path;
    }
}

Related Tutorials