Bug 6021294
- Contextual action bar animation tweaks
Remove the right-to-left cascade effect from action mode menu items. Animation time is now fixed at 300ms for scaling in menu items. Change-Id: I8eef2ed9f93c2af804663dd5e6b3f4915ed45cb1
This commit is contained in:
@ -405,8 +405,7 @@ public class ActionBarContextView extends AbsActionBarView implements AnimatorLi
|
||||
View child = mMenuView.getChildAt(i);
|
||||
child.setScaleY(0);
|
||||
ObjectAnimator a = ObjectAnimator.ofFloat(child, "scaleY", 0, 1);
|
||||
a.setDuration(100);
|
||||
a.setStartDelay(j * 70);
|
||||
a.setDuration(300);
|
||||
b.with(a);
|
||||
}
|
||||
}
|
||||
@ -432,8 +431,7 @@ public class ActionBarContextView extends AbsActionBarView implements AnimatorLi
|
||||
View child = mMenuView.getChildAt(i);
|
||||
child.setScaleY(0);
|
||||
ObjectAnimator a = ObjectAnimator.ofFloat(child, "scaleY", 0);
|
||||
a.setDuration(100);
|
||||
a.setStartDelay(i * 70);
|
||||
a.setDuration(300);
|
||||
b.with(a);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user