Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6370049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:52:51+00:00 2026-05-25T00:52:51+00:00

I encounter a problem of display with a webview i’m using in one of

  • 0

I encounter a problem of display with a webview i’m using in one of my application.

When I call loadData, the webview first display the text and then load the images of the page (standard behaviour).

Sometimes, if those images modify the text position, the old text position is not cleared and both old text and new text+image is displayed

Here a screenshot of what it looks like when the problem occurs:

webview redraw problem

It’s like the webview do not redraw correctly it’s content. Of course a simple invalidate() does not work…

It do no occur often but lets say one time over 20.

Code used to display the data (called outside Activity life cycle methods):

// Include the html headers to the content received from WS
String webtext = String.format(ConfigApp.HTML_BODY, wsdata.getText());
mWebView.setWebChromeClient(...);
mWebView.setWebViewClient(...);
mWebView.setBackgroundColor(0);
mWebView.loadDataWithBaseURL(null, webtext, "text/html", "UTF-8", null);

Any idea how to fix this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T00:52:52+00:00Added an answer on May 25, 2026 at 12:52 am

    I’ve finally found a way to fix the problem.

    Remove the WebView transparent background:

    String webtext = String.format(ConfigApp.HTML_BODY, wsdata.getText());
    mWebView.setWebChromeClient(...);
    mWebView.setWebViewClient(...);
    // mWebView.setBackgroundColor(0);
    mWebView.loadDataWithBaseURL(null, webtext, "text/html", "UTF-8", null);
    

    Because my WebView has a blank background it’s ok for me. Maybe it can be annoying for somebody else.

    For sure it’s a WebView bug.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following problem. In my application I allow users to upload images
I started using OutputCache for my website. The problem that I encounter is that
I would like informations to manipulate tables. I encounter few problem with a piece
I'm now trying to parse chrome bookmarks, but I encounter a problem. the bookmarks
I just encounter a strange problem: var a:ClassA = new ClassA; var b:ClassA =
What do you do when you encounter a programming problem that is really hard
We encountered a problem with using Subversion on Windows. A developer committed a file
In HTML5 using JavaScript on a WEBM video I am trying to display a
We are using Blackberries to display PDF reports. Here are background details on the
Consider these two table: <table id=prototype style=display:none;> <tr> <td></td> <td><input type=text ></td> <td><?php echo

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.