How to set multiple colors in marker label? #548
-
How to set multiple colors in marker label? |
Beta Was this translation helpful? Give feedback.
Answered by
patrickmichalik
Jan 23, 2024
Replies: 2 comments
-
In views, not Compose |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello! You can use a custom |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
csbenz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello! You can use a custom
MarkerLabelFormatter
and Android’sSpannableString
to do this.SpannableString
implementsCharSequence
, so instances of it can be returned fromMarkerLabelFormatter#getLabel
.MarkerLabelFormatter
s are applied toMarkerComponent
s via thelabelFormatter
field.