Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is linkify's default link color?

When you do, for example,

Linkify.addLinks(mTextView, Linkify.EMAIL_ADDRESSES);

what colour does Linkify use? It's not obviously in android.graphics.Color.

I have a few long paragraphs of stuff I just want standard links in, and one I need to do stuff with myself that I'd like to look the same, but I can't work out what colour to set it to. I could just recolour all the others, but that seems a very long way around.

like image 332
Ben Williams Avatar asked May 06 '11 14:05

Ben Williams


People also ask

What color is the default link color?

By default, a link will appear like this (in all browsers): An unvisited link is underlined and blue. A visited link is underlined and purple.

What color should links be?

Shades of blue provide the strongest signal for links, but other colors work almost as well. As always, when using color to signal information, you should provide redundant cues for color-blind users. Making unvisited links brighter and more luminous than visited links will usually accomplish this goal.

What RGB is hyperlink blue?

#CAE4F1 Hex Color | RGB: 202, 228, 241 | BLUE, LINK WATER.


2 Answers

The default style uses #05c5cf, and the inverse style (I'm guessing this is for the light theme) uses #0000EE (at least in platform versions up to 2.2). No guarantees it stays that way, though, but I don't anticipate they'll change that (but who can really tell).

like image 115
Femi Avatar answered Oct 13 '22 01:10

Femi


Textview.getLinkTextColors().getDefaultColor()
like image 45
boiledwater Avatar answered Oct 13 '22 00:10

boiledwater