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

  • SEARCH
  • Home
  • 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 7812725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T04:36:21+00:00 2026-06-02T04:36:21+00:00

I have the following HTML in the ‘assets’ folder: <html> <head> <style> a#button {

  • 0

I have the following HTML in the ‘assets’ folder:

<html>
<head>
<style>
    a#button
    {
        cursor: pointer;
        background-size: 100% 100%;
        background-color: transparent;
        background-image: url('button.png');
    }
    a#button:active
    {
        cursor: pointer;
        border: 2px solid white;
    }
</style>
</head>
<body style="background-color: black; margin: 0px; border: 0px; padding: 0px;">
<img id="bkg" src="background.png" style="position: absolute; top: 0px;" />
<a id="button" href="someurl" style="position: absolute;"></a>
</body>
</html> 

As you see, just two images and nothing else. The second image is a hyperlink, that references a server and looks like a button with the text: “Retry to connect”. I show the page when there is an error:

@Override
public void onReceivedError(WebView view, int errorCode, String description, String failingUrl)
{
     view.loadUrl("file:///android_asset/html/nointernet.htm");
}

Imagine, how shocked I was when I saw that I could select a text on the page with the text selectors! I had copied the text into clipboard then pasted in a text editor and it was:

Check to make sure your device has a signal and data connection Reload
this web page later. View a ca

Where the text did appeared from?!

Regards,

  • 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-06-02T04:36:24+00:00Added an answer on June 2, 2026 at 4:36 am

    This is well-known and very old (3 years) Android issue, http://code.google.com/p/android/issues/detail?id=2340, that is still not resolved.

    UPDATE

    BTW, my unintended workaround seems to be the best of all I’ve read there. WebView background color should be set to zero (black), that eliminates flashing. Also, it’s sensible to set hyperlink color to zero (black) too, if possible via WebView properties, and instead of showing error page on ‘retry’ button click, you will see black screen only.

    Though I still have no idea how the text is getting fixed while tapped that’s resulted as a strange mix of my page and the standard error page…

    UPDATE 2

    Alas, there is no properties for hyperlink colors (normal/visited), but maybe setTextZoom() and default font setting can do something to hide the URL (which renders in a different color) completely.

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

Sidebar

Related Questions

I have following html: <table width=100%;> <tr><hr style=width:100%;></hr></tr> <tr> <span style=float:left>abc</span> <span class=noindex style=float:right>PageID</span>
I have following HTML layout <html> <head> <title></title> <meta http-equiv=Content-Type content=text/html; charset=UTF-8> <style type=text/css>
I have the following HTML <html xmlns=http://www.w3.org/1999/xhtml > <head runat=server> <title></title> <style> .box {
I have following HTML <tr id=r1 class=l1> <td><img class=plusminus id=r1c1 src=assets/images/plus.png border=0 />3/10/12</td> <td></td>
I have the following html code. <html> <body> <div style=max-width:1600px; min-width:900px; > <table> </table>
I have the following HTML: <tr> <td class=ui-widget-content> <a title=Edit href=/Administration/Menus/Edit/001W class=editLink ui-button ui-widget
I have the following HTML: <input type=text id=endDateEditBox value= style=margin-left:5px; height:18px; width:70px; vertical-align:middle; onchange=validateDate('endDateEditBox',
I have following html codes <div align=center style=width:1000px;border:1px solid green;> <div style=border:1px solid red;float:left;
I have the following HTML code : <table class=report width=100%> <thead> </thead> <tbody> <tr
I have following HTML: <g:HTMLPanel styleName={style.container}> </g:HTMLPanel> I want to display another div in

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.