Searched refs:mPositionAnimator (Results 1 – 2 of 2) sorted by relevance
155 private ObjectAnimator mPositionAnimator; field in Switch1037 mPositionAnimator = ObjectAnimator.ofFloat(this, THUMB_POS, targetPosition); in animateThumbToCheckedState()1038 mPositionAnimator.setDuration(THUMB_ANIMATION_DURATION); in animateThumbToCheckedState()1039 mPositionAnimator.setAutoCancel(true); in animateThumbToCheckedState()1040 mPositionAnimator.start(); in animateThumbToCheckedState()1044 if (mPositionAnimator != null) { in cancelPositionAnimator()1045 mPositionAnimator.cancel(); in cancelPositionAnimator()1385 if (mPositionAnimator != null && mPositionAnimator.isRunning()) { in jumpDrawablesToCurrentState()1386 mPositionAnimator.end(); in jumpDrawablesToCurrentState()1387 mPositionAnimator = null; in jumpDrawablesToCurrentState()
143 private ThumbAnimation mPositionAnimator; field in SwitchCompat751 mPositionAnimator = new ThumbAnimation(mThumbPosition, newCheckedState ? 1 : 0); in animateThumbToCheckedState()752 mPositionAnimator.setDuration(THUMB_ANIMATION_DURATION); in animateThumbToCheckedState()753 startAnimation(mPositionAnimator); in animateThumbToCheckedState()757 if (mPositionAnimator != null) { in cancelPositionAnimator()759 mPositionAnimator = null; in cancelPositionAnimator()1103 if (mPositionAnimator != null && !mPositionAnimator.hasEnded()) { in jumpDrawablesToCurrentState()1106 setThumbPosition(mPositionAnimator.mEndPosition); in jumpDrawablesToCurrentState()1107 mPositionAnimator = null; in jumpDrawablesToCurrentState()