I have a checkbox that has this text: “I agree to the terms and conditions”. I need “terms and conditions” to be blue, underlined, and open a webpage when touched.
I did find the Linkify class (http://developer.android.com/reference/android/text/util/Linkify.html), but this seems to turn URLs already in text into to links.
How can I do this?
Color the text blue and add an onClick Listener to it that launches the intent to view the URL. You can markup your text using HTML like syntax via
Html.fromHtml(). See this answer for better explanation and example.