I am having a CheckBox with two links embedded in the text.
The text is set using the following code:
String htmlText = "Accept <a href='someUrl'>Terms and Conditions</a> and <a href='anotherUrl'>Privacy Policy</a>";
checkbox.setText(Html.fromHtml(htmlText));
checkbox.setMovementMethod(LinkMovementMethod.getInstance());
Everything works smoothly except for the fact that the link text appears white on my app's white background, making it invisible. However, the links are still functional when clicked.
How can I change the text color of these links?
I have attempted the following:
String htmlText = "Accept <a style='color:#007CC2;' href='someUrl'>Terms and Conditions</a> and <a style='color:#007CC2;' href='anotherUrl'>Privacy Policy</a>";
Unfortunately, this approach did not work as expected. Any assistance would be highly appreciated :).