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

Rafs

12/04/2020, 1:21 PM
Is there ayway to animate an
ExtendedFloatingActionButton
into a
FloatingActionButton
?
d

Doris Liu

12/05/2020, 10:34 PM
You could consider something like this.
r

Rafs

12/06/2020, 10:42 AM
@Doris Liu I put this in a column and it ended up changing the position of it's sibling composables when it's expanded
d

Doris Liu

12/06/2020, 8:51 PM
Could you share you code? The
AnimatedVisibilty
by default uses horizontal/vertical expand/shrink depending on whether it's put in a row or a column. You may need to overwrite the default by providing
enter = expandHorizontally(), exit = srhinkHorizontally
to the
AnimatedVisibility
4 Views