Code example for CycleInterpolator

0
					break; 
				case DragEvent.ACTION_DRAG_ENTERED:
					Log.v(DROPTAG, "drag entered dropTarget");
					anim = ObjectAnimator
							.ofFloat((Object) v, "alpha", 1f, 0.5f);
					anim.setInterpolator(new CycleInterpolator(40));
					anim.setDuration(30 * 1000); // 30 seconds
					anim.start();
					break; 
				case DragEvent.ACTION_DRAG_EXITED:
					Log.v(DROPTAG, "drag exited dropTarget");
					if (anim != null) {
						anim.end();
						anim = null;
					} 
					break; 
				case DragEvent.ACTION_DRAG_LOCATION:
					Log.v(DROPTAG,
							"drag proceeding in dropTarget: " + event.getX()
									+ ", " + event.getY());
Experience pair programming with AI  Get Codota for Java