Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Linkify how to set custom link color?

I want to set my android linkify text color to a custom color however mText.setLinkTextColor("#2f6699"); does not work, I have been searching for a built in method that will compile a hexidecimal value but I havent found one, any help will go a long way thanks

like image 739
Edmund Rojas Avatar asked Nov 22 '12 21:11

Edmund Rojas


1 Answers

You should convert it to a Color. Try:

mText.setLinkTextColor(Color.parseColor("#2f6699"));
like image 181
dougcunha Avatar answered Oct 06 '22 18:10

dougcunha