Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Touch Premium Member
    Join Date
    Jun 2010
    Posts
    324
    Vote Rating
    2
    profunctional is on a distinguished road

      0  

    Default 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.

  2. #2
    Ext User mikeyroy's Avatar
    Join Date
    Jul 2010
    Location
    San Francisco
    Posts
    101
    Vote Rating
    0
    mikeyroy is on a distinguished road

      0  

    Default


    This is what I use now that they re-enabled transition animations for Android:
    Code:
    Ext.TabPanel.override({
        setActiveItem : function(card, animation) {
    		if (Ext.is.Android) {
    			animation = false; 
    		}
            this.layout.setActiveItem(card, animation);
            return this;
        }
    });
    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.

  3. #3
    Touch Premium Member
    Join Date
    Jun 2010
    Posts
    324
    Vote Rating
    2
    profunctional is on a distinguished road

      0  

    Default


    Thanks, Im gonna try this. On a side note, why did you disable animation?

    Quote Originally Posted by mikeyroy View Post
    This is what I use now that they re-enabled transition animations for Android:
    Code:
    Ext.TabPanel.override({
        setActiveItem : function(card, animation) {
    		if (Ext.is.Android) {
    			animation = false; 
    		}
            this.layout.setActiveItem(card, animation);
            return this;
        }
    });
    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.

  4. #4
    Ext User mikeyroy's Avatar
    Join Date
    Jul 2010
    Location
    San Francisco
    Posts
    101
    Vote Rating
    0
    mikeyroy is on a distinguished road

      0  

    Default


    The animation = false disables the transition when directly calling setActiveItem. I have the same choppiness with the transitions.

  5. #5
    Sencha User
    Join Date
    Jan 2011
    Posts
    8
    Vote Rating
    0
    NetNexus is on a distinguished road

      0  

    Default


    How about:

    Code:
            if (Ext.is.Android) {
                Ext.Anim.override({
                    disableAnimations:true
                });
            }
    right on top in the onReady function of the Ext.setup?

  6. #6
    Sencha User
    Join Date
    Sep 2011
    Posts
    2
    Vote Rating
    0
    pbjorge is on a distinguished road

      0  

    Default


    Quote Originally Posted by NetNexus View Post
    How about:

    Code:
            if (Ext.is.Android) {
                Ext.Anim.override({
                    disableAnimations:true
                });
            }
    right on top in the onReady function of the Ext.setup?
    I just wanted to comment that this breaks the datepicker.
    http://www.sencha.com/forum/showthre...iding-Ext.Anim

  7. #7
    Sencha - Services Team AndreaCammarata's Avatar
    Join Date
    Jun 2009
    Posts
    1,394
    Vote Rating
    22
    AndreaCammarata has a spectacular aura about AndreaCammarata has a spectacular aura about

      0  

    Default


    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

    Code:
    cardSwitchAnimation: false
    in your TabPanels configuration.

    Hope this helps.
    Sencha Inc
    Andrea Cammarata, Solutions Engineer
    CEO at SIMACS

    @AndreaCammarata
    www.andreacammarata.com
    github: https://github.com/AndreaCammarata

    TUX components bundle for Sencha Touch 2.x.x
    http://www.tux-components.com/


  8. #8
    Sencha User
    Join Date
    Sep 2011
    Posts
    2
    Vote Rating
    0
    pbjorge is on a distinguished road

      0  

    Default


    Thanks for posting the solution.
    I ended up figuring it out when overriding TabPanel's setActiveItem didn't remove the transitions...

  9. #9
    Sencha User
    Join Date
    Jun 2010
    Posts
    5
    Vote Rating
    0
    haseeb is on a distinguished road

      0  

    Question 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

  10. #10
    Sencha User
    Join Date
    Oct 2012
    Posts
    27
    Vote Rating
    0
    stackflower is on a distinguished road

      0  

    Default


    I tried the following code to disable page transitions in Sencha Touch 2.0.1 but it doesn't work:

    Code:
    if (Ext.is.Android) {
        Ext.Anim.override({
            disableAnimations:true
        });
    }
    How does it work with Sencha Touch 2.0.1?

Similar Threads

  1. Overlays with CSS3 transitions
    By dominoedge in forum Sencha Touch 1.x: Discussion
    Replies: 9
    Last Post: 26 Aug 2010, 2:20 PM
  2. webkit transitions
    By andersjj in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 20 Aug 2010, 9:38 AM
  3. Transitions
    By hazlema in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 16 Feb 2008, 9:17 PM
  4. Animated Transitions in BorderLayout
    By jfaust97 in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 5 Jan 2007, 11:33 AM

Thread Participants: 6