Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private var iconProgress = 0f
- set(value) {
- if (field != value) {
- field = value
- val iconOffset = lerp(0f, iconRadius - iconCollapsedWidth / 2, value)
- iconRect.left = width - switcherCornerRadius - iconCollapsedWidth / 2 - iconOffset
- iconRect.right = width - switcherCornerRadius + iconCollapsedWidth / 2 + iconOffset
- postInvalidateOnAnimation()
- }
- }
Add Comment
Please, Sign In to add comment