Updated on 2026-08-14

This commit is contained in:
Tangem 2023-02-12 17:54:10 +03:00
parent b153993f3c
commit 5a20f6d533
22 changed files with 387 additions and 429 deletions

View file

@ -210,6 +210,7 @@ fun View.animateVisibility(
hiddenVisibility: Int = View.GONE,
) {
if (show) {
if (this.visibility == View.VISIBLE) return
this.animate()
.alpha(1f)
.setDuration(durationMillis)
@ -218,6 +219,7 @@ fun View.animateVisibility(
this.isVisible = true
}
} else {
if (this.visibility == hiddenVisibility) return
this.animate()
.alpha(0f)
.setDuration(durationMillis)