sencha touch 2无法在我的Android手机中启动

时间:2012-07-12 19:13:23

标签: android sencha-touch-2

我完全按照本教程http://docs.sencha.com/touch/2-0/#!/guide/getting_started 我的应用程序正在我的网络浏览器上(在我的笔记本电脑中),它是为Android生成的。但是当我安装并启动它时,我仍然在蓝屏上显示加载图标。 有什么想法吗?

日Thnx

Ext.define("GS.view.Main", {
    extend: 'Ext.tab.Panel',
    requires: [
        'Ext.TitleBar'
    ],
    config: {
        tabBarPosition: 'bottom',

        items: [{
                xtype : 'homePanel'
            }
        ]
    }
});


Ext.define('GS.view.Home', {
    extend : Ext.Panel,
    xtype : 'homePanel',

    config : {
        title : 'Home',
        iconCls : 'home',
        scrollable : true,
        styleHtmlContent : true,

        html: [
            '<img src="http://staging.sencha.com/img/sencha.png" />',
            '<h1>Welcome to Sencha Touch</h1>',
            "<p>You're creating the Getting Started app. This demonstrates how ",
            "to use tabs, lists and forms to create a simple app</p>",
            '<h2>Sencha Touch (2.0.0)</h2>'
        ].join("")
    }
});

1 个答案:

答案 0 :(得分:1)

你的代码有小错误,请试试这个:

Ext.define('GS.view.Main' , {
     extend: 'Ext.TabPanel',

     config: {
        fullscreen: true,
        styleHtmlContent: true,
        tabBarPosition: 'bottom',

        items: [{
                 xtype : 'homePanel'
                }
       ]
    }
});

我希望这会有所帮助。 :)

enter image description here