Fix duration scale attribute for AnimatorSet

Bug: 20160979
Change-Id: I876771a037d2c254fc53ad0bfa4880e69e427090
This commit is contained in:
Doris Liu
2015-04-13 11:27:32 -07:00
parent 105b8a5f4f
commit a7e8cfe978
2 changed files with 2 additions and 1 deletions

View File

@@ -698,7 +698,7 @@ public class AnimatorInflater {
int ordering = a.getInt(R.styleable.AnimatorSet_ordering, TOGETHER);
createAnimatorFromXml(res, theme, parser, attrs, (AnimatorSet) anim, ordering,
pixelSize);
final int hint = a.getInt(R.styleable.Animator_durationScaleHint,
final int hint = a.getInt(R.styleable.AnimatorSet_durationScaleHint,
HINT_NO_SCALE);
anim.setDurationScaleHint(hint, res);
a.recycle();

View File

@@ -6042,6 +6042,7 @@
<!-- child animations should be played sequentially, in the same order as the xml. -->
<enum name="sequentially" value="1" />
</attr>
<attr name="durationScaleHint" />
</declare-styleable>
<!-- ========================== -->