1. #1
    Sencha User
    Join Date
    Jun 2009
    Posts
    401
    Vote Rating
    2
    parky128 is on a distinguished road

      0  

    Default How to configure a startup screen?

    How to configure a startup screen?


    Hi,

    How and where would I configure a startup screen image to load for phone and tablet devices in a ST2 MVC structured application?

    I see from the documentation that the init function is called before the launch function on Ext.application. Would it be in here?

    Thanks

  2. #2
    Sencha User
    Join Date
    Jun 2009
    Posts
    401
    Vote Rating
    2
    parky128 is on a distinguished road

      0  

    Default


    Are there any examples of these in the demos?

  3. #3
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Vote Rating
    6
    rdougan will become famous soon enough

      0  

    Default


    You can define them in Ext.setup/Ext.application using the phoneStartupScreen and tabletStartupScreen configurations:

    Code:
    Ext.setup({
        tabletStartupScreen: 'Default-Tablet.png',
        phoneStartupScreen: 'Default-Phone.png',
        onReady: function() {
            //...
        }
    });
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

  4. #4
    Sencha - Community Support Team edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939
    Vote Rating
    7
    edspencer is a jewel in the rough edspencer is a jewel in the rough edspencer is a jewel in the rough

      0  

    Default


    @parky128 check out the Ext.app.Application docs in the newly-released 2.0 PR4 for more details on setting this up - http://dev.sencha.com/deploy/sencha-...pp.Application

    We also use these configurations in the Kitchen Sink example - open up http://dev.sencha.com/deploy/sencha-...s/kitchensink/ on an iOS device and add to home screen to see this (Android home screen support coming soon)
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer

Thread Participants: 2