Essentially I want to make something like http://stackoverflow.com appear as “Stack” in a checkedtextview and be a link. How can I do that?
Essentially I want to make something like http://stackoverflow.com appear as Stack in a checkedtextview
Share
TextView can display dumbed-down tagsoup HTML, including
<a href=""/>tags. If that’s instrings.xml, and you set the text usingandroid:text, it should just happen automatically. Otherwise, you’ll need to pass the html string toHtml.fromHtml(). Example:Your layout should also set
android:linksClickable="true"on theCheckedTextView