Hello!
I use CrossWalk for Android in shared mode:
https://crosswalk-project.org/documentation/shared_mode.html
So, I have an activity WebActivity that extends XWalkActivity and implements a
method “onXWalkReady”, where I load my web view.
And I want to achieve two things:
1) My Activity should open in Fullscreen (including hiding Android Status Bar).
2) A splash-screen should be displayed during loading, instead of a blank white
screen.
So, I have created “manifest.json” file inside “assets” folder of my
application, with the following content:
{
“name”: “App Name”,
“xwalk_version”: “2.0.0”,
“start_url”: “index.html”,
“orientation”: “landscape”,
“display”: “fullscreen”,
“xwalk_launch_screen”: {
“ready_when”: “custom”,
“landscape”: {
“background_color”: “#11f”,
“image”: “splash.png”
}
}
}
The bold parts are according to these docs:
https://crosswalk-project.org/documentation/manifest/display.html
https://crosswalk-project.org/documentation/manifest/launch_screen.html
And I am loading my WebView using the method:
webView.loadAppFromManifest(“file:///android_asset/manifest.json”, null);
The activity is loading and showing me index.html after a while (so, loading
from manifest works itself), but neither fullscreen nor launch screen don’t
work: I still see blank white screen during activity loading, and I still see
the Android Status Bar.
Please tell me what am I doing wrong and how to get it working?
Thanks in advance.
____________
Regards, Victor
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help