I want to open url
using Html.fromHtml()
also the particular text between tags should be green in color and not underline.
How can I do that right now I'm doing like this:
consent = consent.replace("<clickable>", "<a href=\"https://www.google.com/\"").replace("</clickable>", "</a>");
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.N) {
consentCheck.setText(Html.fromHtml(consent, Html.FROM_HTML_MODE_LEGACY));
} else {
consentCheck.setText(Html.fromHtml(consent));
}