how to change color of textview hyperlink?
Solution 1:
Add android:textColorLink="yourcolorhere"
to your TextView
Solution 2:
If you want to change it programmatically:
yourText.setLinkTextColor(Color.RED);
Solution 3:
You can use on your XML file:
android:textColorLink="Code"
the "Code" can be e.g. #ff0000
or @color/red
You can use on your JAVA code :
tv.setLinkTextColor(color);
The color can be e.g Color.RED
or Color.parseColor("#ff0000");
Solution 4:
You need to use the android:textColorLink="#000000"
where 000000
is your color's hex code. Hope it helps.
Solution 5:
You can also open colors.xml and change the following color to whatever you want:
<color name="colorAccent">#FF4081</color>