In Android L, a new xml attribute has been added for viewing:
android:stateListAnimator : Sets the state-based animator for the View.
Additionally, to create a StateListAnimator object programmatically, a new method:
loadStateListAnimator(Context context, int id)
was added to AnimatorInflater.
They can be found in the Android L Developer Preview Kit.
harism Jun 27 '14 at 19:03 2014-06-27 19:03
source share