Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Michael whitney
Michael whitney
731 Points

how to add ripple effect to a button?

Hi,

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.