Threaded View

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    12
    Vote Rating
    0
    coure2011 is on a distinguished road

      0  

    Default Answered: no animation when new card is loading

    Answered: no animation when new card is loading


    hi,
    I am totally new to Sencha and trying to create a simple application using Sencha touch 2.0. I have to create 4 different pages. (Splash, Login, About and User). I creatd simple card layout for these pages but a new page is showing without any slide animation. What I am missing in code.
    Code:
    launch: function() {
            var panel = Ext.create('Ext.Panel', {
                layout: 'card',
                fullscreen: true,
                items: [
                    {
                        html: "Splash Screen<img src='images/logo.png' />"
                    },
                    {
                        html: "Login Screen<img src='images/logo.png' />"
                    },
                    {
                        html: "About Screen"
                    },
                    {
                        html: "User Screen"
                    }
                ]
            });
    
            panel.setActiveItem(0);
            
            setTimeout(function(){
                panel.setActiveItem(1);
            },3000);
        }

  2. You need to add the animation to the layout...

    Code:
    layout : {
        type : 'card',
        animation : {
            type : 'slide'
        }
    }

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar