Mohammad Sianaki
10/02/2021, 1:28 PMText
between two TextStyle
?Marko Novakovic
10/02/2021, 1:31 PMfontSize
and color together:
val transition = updateTransition(targetState = isSelected, label = "")
val color by transition.animateColor { selected ->
if (selected) Color.Black else Color.LightGray
}
val fontSize by transition.animateInt { selected ->
if (selected) 24 else 16
}
Text(
text = label,
fontSize = fontSize.sp,
color = color,
)
something like thisMarko Novakovic
10/02/2021, 1:31 PMMarko Novakovic
10/02/2021, 1:32 PMAnimatedContent
with and define some custom animationMohammad Sianaki
10/02/2021, 1:37 PMMarko Novakovic
10/02/2021, 1:38 PMAnimatedContent
is the only thing that comes to mind right nowMarko Novakovic
10/02/2021, 1:52 PMTwoWayConverter
Marko Novakovic
10/02/2021, 1:53 PM