Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

florent37/KotlinAnim

Repository files navigation

KotlinAnim

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()
}

screen

Releases

No releases published

Packages

No packages published

Languages