Quentamia
Quentamia

Reputation: 3294

Can I set a text color for links inside a text view?

In Android, I'm setting the android:autoLink property to all for my TextView. Is it possible to change the color for any links that are found? (I'm not in love with the default blue.)

Upvotes: 3

Views: 1514

Answers (2)

code_finder
code_finder

Reputation: 1370

i think it works

   android:textColorLink="/*color*/"

Upvotes: 0

Simon Dorociak
Simon Dorociak

Reputation: 33505

Try for TextView in the XML:

android:textColorLink="@android:color/someColor"

and in Java code

 textview.setLinkTextColor(Color.RED);

Upvotes: 10

Related Questions