Hey guys, I've made an android library which can p...
# android
h
Hey guys, I've made an android library which can parse a String and apply certain spans to the part of text specified.
Copy code
text_view.text = "Hello { `SpannableStringParser` < text-color:#0000FF ; text-decoration:underline|strike-through /> }".spannify()
This way there is no need to deal with indexes of String. Also this String can come from back-end so that changing the styles of text doesn't require any front-end change. https://github.com/hitanshu-dhawan/SpannableStringParser Do check it out, and let me know what do you think 🙂
👍 5