Open Only-IceSoul opened 4 years ago
onTransitionCompleted never called using TransitionToEnd/start, i am changing motion progress with scroll offset.
Code OnTouchListener:
if(event.actionMasked == MotionEvent.ACTION_MOVE) { motionLayout.progress = offsetProgress }
if(event.actionMasked == MotionEvent.ACTION_UP) {
if (motionLayout.progress < 1f && motionLayout.progress > 0) { if (motionLayout.progress > 0.5f) { motionLayout.transitionToEnd() } else { // to start motionLayout.transitionToStart() } }
onTransitionCompleted never called using TransitionToEnd/start, i am changing motion progress with scroll offset.
Code OnTouchListener:
if(event.actionMasked == MotionEvent.ACTION_MOVE) { motionLayout.progress = offsetProgress }
if(event.actionMasked == MotionEvent.ACTION_UP) {