1
我正在用phonegap測試聚合物。當我用phonegap應用程序嘗試此操作時,它正在工作,但是當我使用adobe build創建它時嘗試使用我的設備顯示空白屏幕。 這是代碼:phonegap顯示空白屏幕的聚合物應用程序
<!DOCTYPE html>
<html>
<head>
<script src="bower_components/paper/webcomponentsjs/webcomponents.js">
</script>
<meta name="viewport"
content="width=device-width, minimum-scale=1.0, initial-scale=1.0,user-scalable=yes">
<link rel="import"
href="bower_components/paper/font-roboto/roboto.html">
<link rel="import"
href="bower_components/paper/core-header-panel/core-header-panel.html">
<link rel="import"
href="bower_components/paper/core-toolbar/core-toolbar.html">
<link rel="import"
href="bower_components/paper/paper-tabs/paper-tabs.html">
<link rel="import"
href="bower_components/paper/paper-elements/paper-elements.html">
<link rel="import"
href="bower_components/paper/core-drawer-panel/core-drawer-panel.html">
<style>
html,body{
height : 100%;
margin : 0;
background-color:#e5e5e5;
font-family : 'RobotoDraft' , 'sans-serif';
-webkit-tap-highlight-color : rgba(0,0,0,0);
}
core-toolbar {
background-color:#4285f4;
color : white;
}
.dropdown{
color : black;
}
</style>
<script>
app.initialize();
</script>
</head>
<body>
<core-toolbar>
<paper-icon-button icon = "menu">
</paper-icon-button>
<span flex>Hello world</span>
<paper-menu-button>
<paper-icon-button icon = "create"></paper-icon-button>
<paper-dropdown class = "dropdown" halign = "right">
<paper-menu>
<paper-item><div id = "hi">hi</div></paper-item>
</paper-menu>
</paper-dropdown>
</paper-menu-button>
</core-toolbar>
<paper-button>Test</paper-button>
</body>
</html>
我做了其他應用程序,但不是與PhoneGap的工作聚合物。 我正在運行android 5.0.2。 謝謝。
我看不到'cordova.js' – Adi 2015-04-03 09:47:27
我忘了添加它!我補充說,但它沒有幫助。 – chin123 2015-04-13 12:17:45