From 9e9d2c7fba72e0ad81e8810e883bda96718b8f15 Mon Sep 17 00:00:00 2001 From: Hemal Patel Date: Thu, 23 Jun 2016 12:08:52 -0700 Subject: [PATCH] Docs: Fixed wrong link text Fixed the link text of the AnimatorInflater.loadStateListAnimator method to display the correct name of the class. Bug: 24599015 Change-Id: I914e4152a5999544ff167c54959276180a7a1003 --- docs/html/training/material/animations.jd | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/docs/html/training/material/animations.jd b/docs/html/training/material/animations.jd index 9c78545b99b6b..96cc5a1d9c468 100644 --- a/docs/html/training/material/animations.jd +++ b/docs/html/training/material/animations.jd @@ -415,12 +415,16 @@ android.animation.StateListAnimator} as an XML resource:

</selector> -

To attach custom view state animations to a view, define an animator using the -selector element in an XML resource file as in this example, and assign it to your -view with the android:stateListAnimator attribute. To assign a state list animator -to a view in your code, use the {@link android.animation.AnimatorInflater#loadStateListAnimator -AnimationInflater.loadStateListAnimator()} method, and assign the animator to your view with the -{@link android.view.View#setStateListAnimator View.setStateListAnimator()} method.

+

+ To attach custom view state animations to a view, define an animator using + the selector element in an XML resource file as in this example, + and assign it to your view with the android:stateListAnimator + attribute. To assign a state list animator to a view in your code, use the + {@link android.animation.AnimatorInflater#loadStateListAnimator + AnimatorInflater.loadStateListAnimator()} method, and assign the animator to + your view with the {@link android.view.View#setStateListAnimator + View.setStateListAnimator()} method. +

When your theme extends the material theme, buttons have a Z animation by default. To avoid this behavior in your buttons, set the android:stateListAnimator attribute to