Actually I reported it here: XWALK-1910
<https://crosswalk-project.org/jira/browse/XWALK-1910>
You have two sample projects, same everything except one uses WebView
and the other one XWalkView. The first one does put the body color
before loading the entire page, the second one puts it after, you always
get a white flash at the beginning and no layout colors are white. If
the loading of the url is too short this effect can be hidden I guess.
Thanks,
Xavier
On 17/06/2014 11:30, Huo, Halton wrote:
Are you sure not other css or element affect the background?
I tried the simple page I showed you, it displayed as I wish(see the attachment)
Thanks,
Halton.
________________________________
From: Xavier Gibert [[email protected]]
Sent: Wednesday, June 11, 2014 6:11 PM
To: Huo, Halton; [email protected]
Subject: Re: [Crosswalk-dev] browser background color
It stills doesn't work. I tried giving the canvas with the background color,
and setting in different ways the clear color and alpha and forcing to clear.
On 11/06/2014 11:06, Huo, Halton wrote:
You could try to set the background style of you <canvas> element.
<canvas id="mycanvas" width="400" height="200"
style="background-color:#00FFFF"/>
Thanks,
Halton.
-----Original Message-----
From: Crosswalk-dev
[mailto:[email protected]] On Behalf Of
Xavier Gibert
Sent: Wednesday, June 11, 2014 3:59 PM
To:
[email protected]<mailto:[email protected]>
Subject: [Crosswalk-dev] browser background color
Hello,
I am trying to set a black background to the browser so it does not remain
white while loading the webGL model.
I tried with:
mXwalkView.setBackgroundResource(R.color.black);
But it has no effect.
I also set the background color to black in: the body, the render division
and the clear color of the render. The layout including the xwalkview is in
black too.
Now, the first time that the browser is loaded, it stills white until the model
shows up. If I reload the browser, then I just get a short flash in white and
quickly changes to black while loading the model. Is there a way to correct
this behavior? to have always black. Why the first time it loads it remains
white more time?
Thanks
--
_______________________________________________
Crosswalk-dev mailing list
[email protected]<mailto:[email protected]>
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev
--
[cid:[email protected]]
--
_______________________________________________
Crosswalk-dev mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev