Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. private fun isLoggingIn(isLoggingIn: Boolean) {
  2. val to = if (isLoggingIn) login_progress else login_text
  3. val from = if (isLoggingIn) login_text else login_progress
  4. to.animate().cancel()
  5. from.animate().cancel()
  6. AnimationHelper.fadeIn(from).setDuration(150).withEndAction { AnimationHelper.fadeOut(to).start() }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement