Skip to content

treelzebub/enkompass

Repository files navigation

Enkompass

A sane way of working with Android Spannables

BuddyBuild Codecov branch

Usage

Set your spans by feeding Enkompass a substring:

"Kotlin builders are neat!".enkompass("neat!") {
     bold()
     italic()
     colorize(getColor(R.color.light_urple))
     clickable(textview) { foo() }
 }

Or by IntRange, if your substring occurs more than once in the outer string:

"Wow Bob Wow.".enkompass(0 until 3) {
    monospace()
}

About

A sane way of working with Android Spannables

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages