Guest User

Untitled

a guest
Nov 21st, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. private var iconProgress = 0f
  2. set(value) {
  3. if (field != value) {
  4. field = value
  5.  
  6. val iconOffset = lerp(0f, iconRadius - iconCollapsedWidth / 2, value)
  7. iconRect.left = width - switcherCornerRadius - iconCollapsedWidth / 2 - iconOffset
  8. iconRect.right = width - switcherCornerRadius + iconCollapsedWidth / 2 + iconOffset
  9.  
  10. postInvalidateOnAnimation()
  11. }
  12. }
Add Comment
Please, Sign In to add comment