https://kotlinlang.org logo
#compose
Title
# compose
c

chanjungskim

03/14/2023, 7:47 AM
I have a question about
AnimatedVisibility
is this starts from alpha = 0f or It doesn't draw at all when its visibility is false? When I leave a log in the block, it only prints when it's true though.
l

Loney Chou

03/14/2023, 10:26 AM
Doesn't exist at all when
false
. When turned to
true
, the content will enter the composition with alpha slowly rising from 0.0 to 1.0, and when turned to
false
, the alpha drops down to 0.0 and then the content leaves the composition.
c

chanjungskim

03/14/2023, 10:47 AM
I see. But I don't know what happens under the hood. I couldn't find if statement.
6 Views