vitorhugods / AvatarView

A circular Image View with a lot of perks. Including progress animation and highlight state with borders and gradient color.
Apache License 2.0
549 stars 39 forks source link

How to hide #6

Closed ljcleyba closed 5 years ago

ljcleyba commented 5 years ago

How do i hide the animation once it's done loading?

vitorhugods commented 5 years ago

In Kotlin:

view.isAnimating = false
vitorhugods commented 5 years ago

Please, check the example app for implementation details.

This line, for example, is responsible for starting and stopping animation when clicking on the button.

        buttonToggleProgress.setOnClickListener {
            avatarView.isAnimating = !avatarView.isAnimating
        }