public void animateCheck() {
			changeBackground();
			ObjectAnimator objectAnimator;
			if (eventCheck) {
				objectAnimator = ObjectAnimator.ofFloat(this, "x", ball.xFin);

			} else {
				objectAnimator = ObjectAnimator.ofFloat(this, "x", ball.xIni);
			}
			objectAnimator.setDuration(300);
			objectAnimator.start();
		}
Make a dark color to press effect

@return
MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/Switch.java