android-target-tooltip
android-target-tooltip copied to clipboard
Proposal: Keep view separate from Tooltip
Maybe it make sense to keep tooltip separate from the View? So tooltip responsibility is only to show "decorated" view. Remove all view setters including text and font. And create new Builder for this specific view.
So api will look like this:
Tooltip.with(context)
.arrowWidth()
.arrowHeight()
....
.view(customView)
.showAt(point);
or
.showAt(anchorView);
where for custom view we can have one builtin text view builder with text, color, font and etc.
This way we don't have to block developers and wait while someone add more "styling options" for TextView.