Code example for AccelerateInterpolator

Methods: setInterpolator

0
		if(event.getAction() == MotionEvent.ACTION_DOWN) {
			 
			// 回転軸を0に設定 
			laughingmanView.setPivotX(0.0f);
			if(!showLaughingman) {
				laughingmanView.animate().rotationY(30.0f).setDuration(500).setInterpolator(new AccelerateInterpolator()).setListener(new AnimatorListener() {
					 
					@Override 
					public void onAnimationStart(Animator animation) {
						 
					} 
					 
					@Override 
					public void onAnimationRepeat(Animator animation) {
						 
					} 
					 
					@Override 
					public void onAnimationEnd(Animator animation) {
						// 回転軸を画像の中心に設定 
//						laughingmanView.setPivotX(laughingmanTop + 150);