Creating a splash screen in Sencha Touch for different mobile devices resolutions

自闭症网瘾萝莉.ら 提交于 2019-12-24 06:45:35

问题


I am using sencha touch 1.1, and the application has to be portable across multiple mobile platforms such as android, iPhone, iPad and blackberry. I need to have splash screen at start up, and I am using the body background property to get the splash screen done.

<body bgcolor="0000" style="background-image: url('images/background.png');"></body>

I used this code in my app:

onReady: function() {
        var panel = new Ext.Panel({
            fullscreen : true,
            html : "Start Up Screen Test"
        });
    } 

But it doesn't work. Please help me do this for devices with multiple resolutions and in a generic way.


回答1:


This will help you to get through to your answers. Different image with resolutions for different size screens of blackberry. http://www.sencha.com/learn/how-to-use-src-sencha-io/




回答2:


You have to give the spash screen for phone/tablet this way:

Ext.regApplication('App', {

    icon: 'public/resources/images/Icon.png',

    tabletStartupScreen: 'public/resources/images/tabletImage.png',

    phoneStartupScreen: 'public/resources/images/phoneImage.png',

    glossOnIcon: true,

    fullscreen: true,

    launch: function() {
    }
});


来源:https://stackoverflow.com/questions/8008313/creating-a-splash-screen-in-sencha-touch-for-different-mobile-devices-resolution

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!