Kotlin / anko

Pleasant Android application development
Apache License 2.0
15.9k stars 1.28k forks source link

Style selector text? #770

Open Ryanauger95 opened 4 years ago

Ryanauger95 commented 4 years ago

I'm creating a selector like so:

activity?.selector("TITLE" , mList.map {
            "SOME TEXT"
        }) { _, i ->
            // DO SOMETHING
}

The docs don't mention styling at all. How can I style "SOME TEXT" so that it's a different color? I have tried Html.fromText("...") and that has not changed the color.

eko8757 commented 3 years ago

anko is deprecated now https://github.com/Kotlin/anko/blob/master/GOODBYE.md