Skip to content

How to set multiple colors in marker label? #548

Closed Answered by patrickmichalik
csbenz asked this question in Questions
Discussion options

You must be logged in to vote

Hello! You can use a custom MarkerLabelFormatter and Android’s SpannableString to do this. SpannableString implements CharSequence, so instances of it can be returned from MarkerLabelFormatter#getLabel. MarkerLabelFormatters are applied to MarkerComponents via the labelFormatter field.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by csbenz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants