Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


Michael whitney
Michael whitney
731 Points

how to add ripple effect to a button?


I've made the fun fact app however I would like to have the ripple effect when I touch the button. It works fine if I don't set a background color but as soon as I add a white background it just behaves like a white rectangle that you tap.

Want to know how to add touch feedback (ripple effect) that you see in android 5.0.

Hi Michael,

I found this link to be useful when I was looking for the answer to this same question. http://android-developers.blogspot.com/2014/10/implementing-material-design-in-your.html

Hope that helps.