Sign in Go Pro

Material Design

Material Motion - Implementing Ripple Touch Feedback

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson
Autoplay

Up next

Previous

About

The Material Design Motion guidelines, have detailed specifications for how touch feedback is supposed to look. In particular, it states that "Ink ripples confirm user input by immediately expanding outward from the point of touch."

It is simple to implement proper Ripple feedback, using functionality built into the Android framework. In this video I will demonstrate a few simple methods for adding effective Ripple feedback to custom Views and RecyclerView items.

In this episode you will learn:
- How to apply the borderlessButtonStyle Style to an XML element
- How to apply the selectableItemBackground attribute in an XML element
- How to apply feedback to a Recycler Item
- How to use Ripple feedback in addition to other XML attributes (using foreground vs. background)

Sample Code:
- https://github.com/CasterIO/MaterialMotion/commit/6f486a7ac65f018bf1d8da92f1328f27c85c34d1

Links
- Borderless Button Style - http://developer.android.com/guide/topics/ui/controls/button.html#Borderless
- Selectable Item Background - https://plus.google.com/+PareshMayani/posts/E1shqVV8GGL

Instructor

Links

Comments

There are no comments on this lesson, start the conversation below ...

>
You need to go PRO to post comments.

Lessons in Material Design