-
10 Nov 2010 8:23 AM #1
How do we disable transitions for the Android?
How do we disable transitions for the Android?
Is there a global setting to do this? The transitions on the kitchen sink work fine. But our app transitions to panels with form fields and lists. The performance is very choppy when you are transitioning to anything but a blank page.
-
10 Nov 2010 12:25 PM #2
This is what I use now that they re-enabled transition animations for Android:
If that doesn't do it for you, you may have properties declaring the animation elsewhere which override the animation setting here. To preserve animations on the iPhone I have the animation declared when I call setActiveItem to switch the cards, so in my case the above code works fine.Code:Ext.TabPanel.override({ setActiveItem : function(card, animation) { if (Ext.is.Android) { animation = false; } this.layout.setActiveItem(card, animation); return this; } });
-
10 Nov 2010 3:19 PM #3
-
10 Nov 2010 3:39 PM #4
The animation = false disables the transition when directly calling setActiveItem. I have the same choppiness with the transitions.
-
24 Feb 2011 7:51 AM #5
How about:
right on top in the onReady function of the Ext.setup?Code:if (Ext.is.Android) { Ext.Anim.override({ disableAnimations:true }); }
-
15 Sep 2011 1:03 AM #6
I just wanted to comment that this breaks the datepicker.
http://www.sencha.com/forum/showthre...iding-Ext.Anim
-
15 Sep 2011 1:29 AM #7
Hey guys, you are doing things harder than they are:
If you want to disable transitions for TabPanels you don't need to override, just set the
in your TabPanels configuration.Code:cardSwitchAnimation: false
Hope this helps.Sencha Inc
Andrea Cammarata, Solutions Engineer
CEO at SIMACS
@AndreaCammarata
www.andreacammarata.com
github: https://github.com/AndreaCammarata
-
15 Sep 2011 1:28 PM #8
Thanks for posting the solution.
I ended up figuring it out when overriding TabPanel's setActiveItem didn't remove the transitions...
-
20 Sep 2011 6:24 PM #9
Samsung Nexus Android 2.3.4 - Sencha Touch Slide Animation not smooth
Samsung Nexus Android 2.3.4 - Sencha Touch Slide Animation not smooth
Hi,
Iam doing a simple map using google maps. I have about 5-6 cards, however i initialise and keep only one active and destroy the others which are not active for optimal memory usage. This works pretty much fine ie faster in iPhone specially the page transition.
However in Samsung Nexus Android 2.3.4 the slide animation works but its not smooth. Any help on this would be appreciated.
regards,
Haseeb Afsar
-
31 Oct 2012 1:17 AM #10
I tried the following code to disable page transitions in Sencha Touch 2.0.1 but it doesn't work:
How does it work with Sencha Touch 2.0.1?Code:if (Ext.is.Android) { Ext.Anim.override({ disableAnimations:true }); }
Similar Threads
-
Overlays with CSS3 transitions
By dominoedge in forum Sencha Touch 1.x: DiscussionReplies: 9Last Post: 26 Aug 2010, 2:20 PM -
webkit transitions
By andersjj in forum Sencha Touch 1.x: DiscussionReplies: 0Last Post: 20 Aug 2010, 9:38 AM -
Transitions
By hazlema in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 16 Feb 2008, 9:17 PM -
Animated Transitions in BorderLayout
By jfaust97 in forum Ext 1.x: Help & DiscussionReplies: 4Last Post: 5 Jan 2007, 11:33 AM


Reply With Quote