Hello Crosswalk team, There are so many Fullstack expert on crosswalk list, please some one can suggest me on this point :-- As latest android view have same performance as chrome view used by crosswalk. So what do i have to do to so that my android view app looks same as crosswalk view app. Do i have to change the CSS file of my hybrid htm app ?
Please suggest, your hint will be useful for me. Regards, Dinesh On Sat, Feb 25, 2017 at 9:00 PM, Dinesh Guleria <[email protected]> wrote: > Then how can I enable this setUseWideViewPort() method in my html app ? > > On 24-Feb-2017 6:54 AM, "Zhang, Xiaofeng" <[email protected]> > wrote: > >> Yes, you are right, but XWalkView is just like android WebView, both of >> them are not totally the same with browser. >> >> >> >> Here is the description in my attached link(google official): >> >> >> >> >> >> Best Regards J >> >> Xiaofeng Zhang >> >> >> >> *From:* Dinesh Guleria [mailto:[email protected]] >> *Sent:* Thursday, February 23, 2017 4:58 PM >> *To:* Zhang, Xiaofeng <[email protected]> >> *Subject:* Re: [Crosswalk-help] android view not working same as >> crosswalk view >> >> >> >> But as per my knowledge, when we are making hybrid html5 based android >> app. Then if we use viewport tag in the index.html file, then thats it. >> Mobile web browser will do rest of task to fit webpage on mobile device. >> >> <meta name="viewport" content="width=device-width, initial-scale=1"> >> >> >> >> Regards, >> >> Dinesh >> >> >> >> On Thu, Feb 23, 2017 at 1:45 PM, Zhang, Xiaofeng < >> [email protected]> wrote: >> >> Sorry, I don’t have much experience. >> >> >> >> I think you can refer to here https://developer.android.com/ >> guide/webapps/targeting.html >> >> http://stackoverflow.com/questions/2909080/android-webview- >> seems-to-ignore-viewport-information-on-web-pages >> >> >> >> And for plugin, cordova-plugin-crosswalk-webview also support it. >> >> You can try add below code in XWalkWebViewEngine.java – >> initWebViewSettings() >> >> webView.getSettings().setLoadWithOverviewMode(true); >> >> webView.getSettings().setUseWideViewPort(true); >> >> >> >> >> >> Best Regards J >> >> Xiaofeng Zhang >> >> >> >> *From:* Dinesh Guleria [mailto:[email protected]] >> *Sent:* Thursday, February 23, 2017 3:44 PM >> *To:* Zhang, Xiaofeng <[email protected]> >> >> >> *Subject:* Re: [Crosswalk-help] android view not working same as >> crosswalk view >> >> >> >> Hello Zhang, >> >> >> >> I tried calling this two api directly from my java script onload function >> "doc_onload(0)" >> >> <body onload="doc_onload(0)"> >> >> >> >> I inserted those two calls inside doc_onload function but getting error. >> App is not adjusting to its background ? >> >> >> >> Do i need some plugin for this ? >> >> >> >> Regards, >> >> Dinesh >> >> >> >> On Thu, Feb 23, 2017 at 12:48 PM, Dinesh Guleria <[email protected]> >> wrote: >> >> Hello Zhang, >> >> >> >> Thanks for your reply. >> >> >> >> >>If you use viewport, you should also use below two apis: >> >> webView.getSettings().setLoadWithOverviewMode(true); >> >> webView.getSettings().setUseWideViewPort(true); >> >> >> >> I am not calling above mentioned method of WebView object, but this >> WebView Object is JAVA object used in android programming. And i am >> developing hybrid html app. I have very less/negligible knowledge of JAVA. >> >> Do i need to include some javascript file in my index.html file to create >> this webView Object ? >> >> or cordova.js file contains the definition of this object ? >> >> >> >> Please suggest some reference example to use webview with hybrid app , it >> will be helpful for me ? >> >> >> >> Regards, >> >> Dinesh >> >> >> >> On Thu, Feb 23, 2017 at 11:25 AM, Zhang, Xiaofeng < >> [email protected]> wrote: >> >> If you use viewport, you should also use below two apis: >> >> *webView.getSettings().setLoadWithOverviewMode(true);* >> >> *webView.getSettings().setUseWideViewPort(true);* >> >> >> >> https://crosswalk-project.org/apis/embeddingapidocs_v7/ >> >> >> >> >> >> Best Regards J >> >> Xiaofeng Zhang >> >> >> >> *From:* Crosswalk-help [mailto:crosswalk-help-bounces >> @lists.crosswalk-project.org] *On Behalf Of *Dinesh Guleria >> *Sent:* Monday, February 20, 2017 2:58 PM >> *To:* Zhang, Belem <[email protected]> >> *Cc:* [email protected] >> *Subject:* Re: [Crosswalk-help] android view not working same as >> crosswalk view >> >> >> >> Hello Belem, >> >> >> >> Thanks for your reply. >> >> >> >> >> I didn’t see any relevant code >> >> code is here for app. >> >> https://github.com/dinguluer/UiMagician/tree/master/samples/ >> Digital_ocean/html_mobile_app/mobile_app/intel_xdx/UiMagician/www >> >> >> >> >> Have you tried scale fit mobile web content using viewport meta tag? >> >> I try this also but result is same. I have also attached the >> configuration file "intelxdk.config.android.xml" file. >> >> I build for minimum & MAX version as android marshmallow api number = 23. >> >> >> >> Please suggest. >> >> >> >> Regards, >> >> Dinesh >> >> >> >> On Mon, Feb 20, 2017 at 6:36 AM, Zhang, Belem <[email protected]> >> wrote: >> >> Have you tried scale fit mobile web content using viewport meta tag? I >> didn’t see any relevant code in https://github.com/dinguluer/U >> iMagician/tree/master/samples >> >> >> >> e.g. <meta name="viewport" content="width=device-width, >> initial-scale=1.0"> >> >> >> >> BR >> >> Belem >> >> >> >> *From:* Crosswalk-help [mailto:crosswalk-help-bounces >> @lists.crosswalk-project.org] *On Behalf Of *Dinesh Guleria >> *Sent:* Friday, February 17, 2017 6:41 PM >> *To:* [email protected] >> *Subject:* [Crosswalk-help] android view not working same as crosswalk >> view >> >> >> >> Hello Crosswalk Team, >> >> >> >> I have been using crosswalk over the years in opensource project >> UiMagician, to generate the android app. >> >> https://sites.google.com/site/uimagician/ >> >> >> >> Now as crosswalk will no longer be supported as community is saying that >> latest Android view uses same chrome view as used by Crosswalk. >> >> >> >> My app looks very well similar to html app when i use crosswalk but when >> i do not use crosswalk & use build my hybrid app using cordova it looks >> very different >> >> But why my hybrid android app looks different when using crosswalk view >> or android view ? Please see the attached pictures these are the printshot >> of app buld with crosswalk & other build without crosswalk. >> >> >> >> I have tested it on my phone with Android version 6.0. >> >> If latest android view is same as crosswalk chrome view then why app >> looks diffrent (bigger font & not able to adjust to the phone)? >> >> >> >> Please suggest. >> >> >> >> Regards, >> >> Dinesh >> >> >> >> >> >> >> >> >> >
_______________________________________________ Crosswalk-help mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
