val username = findViewById<View>(R.id.username)
val avatar = findViewById<View>(R.id.avatar)
val follow = findViewById<View>(R.id.follow)
anim(avatar, startDelay = 1000L) {
x = 16f
y = 0f
scaleX = 0.5f
scaleY = 0.5f
}.thenAnim(username) {
x = avatar.x + avatar.width
centerY = avatar.centerY()
}.andAnim(follow) {
x = avatar.x + avatar.width + username.width + 16
centerY = avatar.centerY()
}
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Create fluent animations in a kotlin way
License
florent37/KotlinAnim
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Create fluent animations in a kotlin way
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published