Hello,
I would like to replace the standard “X” tooltip marker with a custom drawable. This article suggests that it is possible to customize the marker, but I wasn’t able to find any examples how to do it. Could you help me with that?
Regards,
Anna
- Anna Lazar asked 6 years ago
- You must login to post comments
Hello Anna,
You might notice, that TooltipModifier has few constructors and one of them takes DrawableBehavior as an argument, which is used to draw marker. Default one is CrossDrawableBehavior, but you can create the custom one, all you need to do is to inherit from DrawableBehavior and override onDrawOverlay() method and draw your overlay on the passed in canvas. That’s it. Now use custom drawable behavior when creating your TooltipModifier.
Hope that helps.
Best Regards
Nazar R.
- Nazar Rudnyk answered 6 years ago
- You must login to post comments
Please login first to submit.