Skip to content

Instantly share code, notes, and snippets.

@ademar111190
Created June 17, 2019 17:04
Show Gist options
  • Select an option

  • Save ademar111190/7fa521b0444d48575c90a5da88438b01 to your computer and use it in GitHub Desktop.

Select an option

Save ademar111190/7fa521b0444d48575c90a5da88438b01 to your computer and use it in GitHub Desktop.
Step 8, the animator target methods
...
@Keep fun setRectLeft(left: Int) = updateRect(rect.apply { this.left = left })
@Keep fun setRectRight(right: Int) = updateRect(rect.apply { this.right = right })
@Keep fun setRectTop(top: Int) = updateRect(rect.apply { this.top = top })
@Keep fun setRectBottom(bottom: Int) = updateRect(rect.apply { this.bottom = bottom })
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment