简体   繁体   English

使用Crosswalk编译后,硫化聚合物应用程序看起来很奇怪

[英]Vulcanized Polymer app looks weird after compiling with Crosswalk

I have a simple Polymer HTML app that I want to compile into a apk using the Cordova Crosswalk project. 我有一个简单的Polymer HTML应用程序,我想使用Cordova Crosswalk项目将其编译成apk。 The app is fully functional when running on a webserver. 在网络服务器上运行时,该应用程序可以正常运行。 It also works as expected after being vulcanized. 硫化后也能按预期工作。

But after using Crosswalk to make the APK and installing it on my phone it breaks. 但是使用Crosswalk制作APK并将其安装在我的手机上后,它就坏了。 The slide-out menu is rendered below everything else. 滑出菜单显示在其他所有菜单之下。 The radio buttons doesn't register a click and the ripple effect gets stuck around it. 单选按钮不记录点击,涟漪效应卡在其周围。 Normal buttons seem to work as intended. 普通按钮似乎可以正常工作。 The app also has a white border at the edges. 该应用程序的边缘还带有白色边框。

I suspect it is somehow caused by using Vulcanize and Crosswalk. 我怀疑这是由于使用Vulcanize和Crosswalk造成的。 I'm unable to try it without Vulcanize as I get an error that seems to be pretty common and the only solution I found was Vulcanize. 如果没有Vulcanize,我将无法尝试,因为出现了一个似乎很常见的错误,而我发现的唯一解决方案是Vulcanize。 http://zclark.github.io/2014/11/26/polymer-crosswalk.html http://zclark.github.io/2014/11/26/polymer-crosswalk.html

I tried to use the --inline-scripts command while vulcanizing but that resulted with just a white blank page instead. 我试图在硫化时使用--inline-scripts命令,但结果却只有白色的空白页。

Anyone knows what might be wrong? 有人知道怎么了吗?

That must be css/javascript talking, that gets picked up. 那一定是css / javascript对话,然后才被提起。 There is an easier way if you have used android studio, just create a webview and load ur html with loadurl. 如果您使用过android studio,则有一种更简单的方法,只需创建一个webview并使用loadurl加载html即可。 see details. 阅读详情。

http://developer.android.com/reference/android/webkit/WebView.html http://developer.android.com/reference/android/webkit/WebView.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM