Is there any layer drawable equivalent thing in co...
# compose
d
Is there any layer drawable equivalent thing in compose? For creating buttons with normal/pressed state, attached an image in comment of the result I want to achieve
This message contains interactive elements.
k
Don’t post the same message in multiple channels. As to your question - no. In compose you keep track of individual state bits (hovered, pressed, enabled, etc) and choose the visuals based on the combinations of these. This also allows you to be much more flexible and mix in your own state bits that are specific to your particular use case.