cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Velecký (JIRA) <j...@apache.org>
Subject [jira] [Commented] (CB-7159) BackgroundColor not used when <html style="opacity:0>, nor during screen rotation.
Date Fri, 18 Jul 2014 18:52:04 GMT

    [ https://issues.apache.org/jira/browse/CB-7159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14066728#comment-14066728
] 

Jan Velecký commented on CB-7159:
---------------------------------

When I add this code
{code:java}
 appView.setBackgroundColor(Color.BLACK);
{code}
into onCreate method, it work how it should work.
So there are problem with code in CordovaActivity.java
{code:java}
int backgroundColor = preferences.getInteger("BackgroundColor", Color.BLACK);
root.setBackgroundColor(backgroundColor);
{code}
So BackgroundColor should be set in webView to make it work.

> BackgroundColor not used when <html style="opacity:0>, nor during screen rotation.
> ----------------------------------------------------------------------------------
>
>                 Key: CB-7159
>                 URL: https://issues.apache.org/jira/browse/CB-7159
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>            Reporter: Andrew Grieve
>            Assignee: Andrew Grieve
>            Priority: Minor
>
> As reported on SO: http://stackoverflow.com/questions/24601226/change-background-color-of-app-visible-during-resizing-webview-due-to-device-ori
> The `<html style="opacity:0>` is a result of my own testing.
> This is fixed (I believe) by setting the Android View background color on the WebView
object as well as its parents.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message