In Android L a new xml attribute has been added for View :
android:stateListAnimator : Sets the state-based animator for the View.
Additionally for instantiating StateListAnimator object programmatically a new method :
loadStateListAnimator(Context context, int id)
has been added to AnimatorInflater .
These can be found on Android L developer preview documentation package.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…