Updated on 2026-08-14
This commit is contained in:
parent
b153993f3c
commit
5a20f6d533
22 changed files with 387 additions and 429 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue