Android Linkify how to set custom link color?

android, linkify, textcolor

Solution

You should convert it to a Color. Try:

mText.setLinkTextColor(Color.parseColor("#2f6699"));

Problem

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

Original source