Sencha Touch in WebView

狂风中的少年 提交于 2019-12-04 20:49:05
shaleen

The code seems to be correct. Please check the .js and .css files. They should be added correctly in index.html

What I changed is: Enable JavaScript for the Android Webview:

WebSettings webSettings = webView.getSettings();
webSettings.setJavaScriptEnabled(true);

And added the following line to my app.js

viewport: { autoMaximize: false },
OrchidERP
Ext.application({
  name: 'Orchdid Mobile',
  viewport: {
    autoMaximize: true
  },
  launch: function () {.......}
});

For Sencha Touch 2

http://dev.sencha.com/deploy/sencha-touch-2-b3/release-notes.html

shaleen

Check the path of .js and .css files you are adding in index.html

also make sure you are using chrome or safari to see the output..

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!