-
23 May 2012 11:14 AM #1
Best practices for smooth android animation
Best practices for smooth android animation
Hi everyone!
I'm trying to figure out how to make better animation for Android (on iOS all works as usually fine). For example, I started to use Ext.Animator instead of Ext.Anim and my code is:
As a result, I see that animation on Android became better, but anyway is worse then on iOS. And I need your advice what to change, how to work with it?Code:this.parent.getScrollable().getScroller().getMomentumEasing().y.setMomentum( { acceleration: 0 }); Ext.Animator.run({ element: itemContainer, duration: 100, easing: 'ease-in', preserveEndState: true, from: { left: this.minX }, to: { left: this.maxX }, onEnd: function () { this.parent.getScrollable().getScroller().getMomentumEasing().y.setMomentum({ acceleration: 30 }); } });
-
25 May 2012 5:44 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,682
- Vote Rating
- 435
Best practice to smooth android animation is to use iOS

Don't have too much animating, don't use box shadows, don't do complex animations, switch to iOSMitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
25 May 2012 6:38 AM #3
Sadly this is the best answer. I tested a client implementation of our mobile app and it just shines on iOS. I tested on about 10 Android devices, even the latest Samsung phones and tablets, and the experience just wasn't as smooth. A Kindle Fire hacked to run Android 4 was very close to iOS in smoothness.


Reply With Quote