Created
March 31, 2018 10:01
-
-
Save davidmarinangeli/7eec8455654850b3d3540ff9a9384bd6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override fun onScroll(p0: MotionEvent, p1: MotionEvent, p2: Float, p3: Float): Boolean { | |
val transition = Transitioner(lilcardconstraint, bigcardconstraint) | |
if (p0.y > p1.y) { | |
transition.animateTo(0f,500,AccelerateDecelerateInterpolator()) | |
animations.fadeInAnimation(guide, 1500) | |
animations.fadeInAnimation(arrowup, 1500) | |
//manageNFC(nfc) | |
//light = false | |
} else { | |
transition.animateTo(1f,200,AccelerateDecelerateInterpolator()) | |
animations.fadeOutAnimation(guide, 1000) | |
animations.fadeOutAnimation(arrowup, 1000) | |
//manageNFC(nfc) | |
//light = false | |
} | |
return true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment