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 7684781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T19:06:23+00:00 2026-05-31T19:06:23+00:00

A Webview will display links in the content HTML as having blue underlines. So

  • 0

A Webview will display links in the content HTML as having blue underlines. So if you have something in the HTML like

<a href="...">blah blah</a>

… it is clearly visible as a link.

The Webview also allows you to click on phone numbers and addresses (even if those are just text in the HTML, not links) to launch the Dialer or Maps.

How can one get Webview to display those (Linkify, probably) links with underlines etc? It’s easy enough in a TextView since one can get the spans from a TextView and style them, but Webview doesn’t expose any way to retrieve that data… at least not that I can see looking through the docs.

  • 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-31T19:06:25+00:00Added an answer on May 31, 2026 at 7:06 pm

    Given this:

    • http://code.google.com/p/android/issues/detail?id=742

    it still doesn’t seem to be a way to do this from Java directly. One thing that might work is to write some JavaScript code and run it after page is loaded, e.g. as given here:

    • In Android Webview, am I able to modify a webpage's DOM?

    Here’s an example of a similar thing:

    • Disabling links in android WebView

    where the idea is to disable links. You may be able to use a similar approach to add some CSS, including underlining. A couple of other SOqs / links that might help:

    • Android: Injecting Javascript into a Webview outside the onPageFinished Event
    • Android: Injecting Javascript into a Webview outside the onPageFinished Event
    • http://iphoneincubator.com/blog/windows-views/how-to-inject-javascript-functions-into-a-uiwebview
    • Injecting Javascript into a Webview outside the onPageFinished Event (Using DatePicker to set a date on an input of a WebView)

    Hope this helps.

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

Sidebar

Related Questions

I have read RSS and get html string like at http://pastebin.com/eWQ6gUe2 which i display
I'm using webview to display content from certain URL. Check 2nd and 3rd links
I want to display html in android activity through web view,my screen will be
I have a webview in my iPhone application, and I also have some html
I'm developing an application which is mainly a webview and will display a JQTouch
Like plenty of other people before me, I have some web content that I
In my app, I have to display a specific webpage in a WebView that
I have a large Png image file that I would like to display and
I have been trying to load a html file in a webview in a
In my application i have one web view .I will loading a simple html

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.