package com.aragaer.jtt.graphics;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Path;
import android.view.View;

public class ArrowView extends View {
	private final Paints paints;
	private final Path path = new Path();
	public ArrowView(Context context) {
		super(context);
		paints = Paints.getInstance(context);
	}

	protected void onSizeChanged(int w, int h, int oldw, int oldh) {
		path.reset();
		path.moveTo(0, 0);
		path.rLineTo(w, 0);
		path.rLineTo(-w / 2, h);
		path.close();
	}

	protected void onDraw(Canvas canvas) {
		canvas.drawPath(path, paints.solid1);
		canvas.drawPath(path, paints.stroke1);
	}
}

package com.aragaer.jtt.graphics;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Path;
import android.view.View;

public class ArrowView extends View {
	private final Paints paints;
	private final Path path = new Path();
	public ArrowView(Context context) {
		super(context);
		paints = Paints.getInstance(context);
	}

	protected void onSizeChanged(int w, int h, int oldw, int oldh) {
		path.reset();
		path.moveTo(0, 1);
		path.rLineTo(w, 1);
		path.rLineTo(-w / 2, h);
		path.close();
	}

	protected void onDraw(Canvas canvas) {
		canvas.drawPath(path, paints.solid1);
		canvas.drawPath(path, paints.stroke1);
	}
}

Fix the arrow being shaven on top
Fix the arrow being shaven on top
