Skip to content

Instantly share code, notes, and snippets.

@NezSpencer
Created August 10, 2019 07:32
Show Gist options
  • Select an option

  • Save NezSpencer/0e763414f7f55c6a2b5c576b47095230 to your computer and use it in GitHub Desktop.

Select an option

Save NezSpencer/0e763414f7f55c6a2b5c576b47095230 to your computer and use it in GitHub Desktop.
get all annotated spans
val termsText = getText(R.string.terms_conditions_prompt) as SpannedString
val annotations = termsText.getSpans(0, termsText.length, Annotation::class.java)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment