Hubert Hung
Hubert Hung

Reputation: 61

How to apply colour animation to button in Android Studio like what shown by material design?

So, I want to make something like this: https://material-design.storage.googleapis.com/publish/material_v_4/material_ext_publish/0B3T7oTWa3HiFSTNhRndpWXBwRDA/components-buttons-flatbuttons.webm

The pressed state is what I want for this moment. How can I get this?

Upvotes: 0

Views: 86

Answers (1)

user5283155
user5283155

Reputation:

It's called Ripple.

You could either implement it yourself (check out this link) or use a library (ex: RippleEffect)

Upvotes: 2

Related Questions