Code example for Path

Methods: closelineTomoveTo

0
		this.leftArrow = leftArrow;
		configureDrawable(); 
	} 
 
	private void configureDrawable() { 
		path = new Path();
 
		if (leftArrow) {
			path.moveTo(0.0f, 1.0f);
			path.lineTo(1.0f, 2.0f);
			path.lineTo(1.0f, 0.0f);
			path.close();
		} else { 
			path.lineTo(1.0f, 1.0f);
			path.lineTo(0.0f, 2.0f);
			path.lineTo(0.0f, 0.0f);
			path.close();
		} 
 
		setWillNotDraw(false);
	}