Code example for Path

Methods: addArc

0
		arcAni = new ArcTranslate(1, Animation.RELATIVE_TO_SELF, 0,
				Animation.RELATIVE_TO_SELF, 5, Animation.RELATIVE_TO_SELF, 5);
		arcAni.setFillAfter(true);
		arcAni.setDuration(5000);
 
		Path path = new Path();
		RectF rectF = new RectF();
		rectF.set(200, 200, 400, 400);
		path.addArc(rectF, 0, 360);
		pathAni = new PathAnimation(path);
		pathAni.setDuration(1000);
		pathAni.setFillAfter(true);
		pathAni.setRepeatCount(Animation.INFINITE);
		pathAni.setRepeatMode(Animation.REVERSE);
		 
		//(첫시작x,첫시작,y, 중간x, 중간y, 최종 x, 쵸) 
		bezierAni = new BezierTranslateAnimation(0, 200, 100, 0, 200, 100);
		bezierAni.setDuration(3000);
		bezierAni.setFillAfter(true);
		bezierAni.setRepeatCount(Animation.INFINITE);
		bezierAni.setRepeatMode(Animation.REVERSE);