**This page is deprecated.** See below for the new location for
documentation that used to be here.

## Customize Touch Feedback

Touch feedback in material design provides an instantaneous visual confirmation at the
point of contact when users interact with UI elements. The default touch feedback animations
for buttons use the new [RippleDrawable](https://developer.android.com/reference/android/graphics/drawable/RippleDrawable) class, which transitions
between different states with a ripple effect.

In most cases, you should apply this functionality in your view XML by specifying the view
background as:

- `?android:attr/selectableItemBackground` for a bounded ripple.
- `?android:attr/selectableItemBackgroundBorderless` for a ripple that extends beyond the view. It will be drawn upon, and bounded by, the nearest parent of the view with a non-null background.

**Note:** `selectableItemBackgroundBorderless` is a new
attribute introduced in API level 21.

Alternatively, you can define a [RippleDrawable](https://developer.android.com/reference/android/graphics/drawable/RippleDrawable)
as an XML resource using the `ripple` element.

You can assign a color to [RippleDrawable](https://developer.android.com/reference/android/graphics/drawable/RippleDrawable) objects. To change
the default touch feedback color, use the theme's `android:colorControlHighlight`
attribute.

For more information, see the API reference for the [RippleDrawable](https://developer.android.com/reference/android/graphics/drawable/RippleDrawable) class.

## Use the Reveal Effect

See [Create a circular reveal animation](https://developer.android.com/training/animation/reveal-or-hide-view#Reveal).


## Customize Activity Transitions

See [Start an Activity with an Animation](https://developer.android.com/training/transitions/start-activity).

## Use Curved Motion

See [Use curved motion](https://developer.android.com/training/animation/reposition-view#CurvedMotion).

## Animate View State Changes

See [Using StateListAnimator to
animate view state changes](https://developer.android.com/guide/topics/graphics/prop-animation#ViewState).

## Animate Vector Drawables

See [Animate Drawable Graphics](https://developer.android.com/guide/topics/graphics/drawable-animation).