Created
February 4, 2021 10:36
-
-
Save SurajBahadur/493cacf5c4e6f2ff0785891d98592578 to your computer and use it in GitHub Desktop.
SpannableStringBuilder example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val ssb = SpannableStringBuilder() | |
.color(getColor(R.color.color_grey)) | |
{ | |
append(getString(R.string.beta_version_stat)) | |
appendLine() | |
} | |
.color(getColor(R.color.color_grey)) { | |
append(getString(R.string.exp_issue)) | |
} | |
.color(getColor(R.color.colorPrimary)) { | |
underline { | |
append(getString(R.string.share_feedback)) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment