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

galex

11/21/2019, 10:14 AM
Hello, what will be the equivalent of selectors in Compose? Will we be able to set a few attributes at once (like a style) instead of a selector per xml property?
k

kioba

11/21/2019, 10:36 AM
I believe this could be handled either by the some MaterialColors or a lambda which returns the right color for the right provided state. @Adam Powell mentioned that styles can animate as well, light to dark mode or state changes which is an extra we have instead of xml
g

galex

11/21/2019, 12:15 PM
Nice!
3 Views