在 Sencha Touch 中为不同的移动设备分辨率创建启动画面 [英] Creating a splash screen in Sencha Touch for different mobile devices resolutions

查看:42
本文介绍了在 Sencha Touch 中为不同的移动设备分辨率创建启动画面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 sencha touch 1.1,并且该应用程序必须能够跨多个移动平台(例如 android、iPhone、iPad 和黑莓)进行移植.我需要在启动时有启动画面,并且我正在使用 body 背景属性来完成启动画面.

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.

推荐答案

这将帮助您获得答案.不同尺寸的黑莓屏幕分辨率不同的图像.http://www.sencha.com/learn/how-to-use-src-sencha-io/

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/

这篇关于在 Sencha Touch 中为不同的移动设备分辨率创建启动画面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆