我完全遵循了本教程 http://docs.sencha.com/touch/2-0/#!/guide/getting_started 我的应用程序在我的网络浏览器(在我的笔记本电脑中)上运行,并且它是为 Android 生成的。但是当我安装并启动它时,蓝屏上仍然有加载图标。 有什么想法吗?
感谢
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("")
}
});
最佳答案
你的代码有小bug,请试试这个:
Ext.define('GS.view.Main' , {
extend: 'Ext.TabPanel',
config: {
fullscreen: true,
styleHtmlContent: true,
tabBarPosition: 'bottom',
items: [{
xtype : 'homePanel'
}
]
}
});
希望对您有所帮助。 :)
关于android - sencha touch 2 无法在我的安卓手机上启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11458977/