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.
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.
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.
#CAE4F1 Hex Color | RGB: 202, 228, 241 | BLUE, LINK WATER.
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).
Textview.getLinkTextColors().getDefaultColor()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With