android-target-tooltip icon indicating copy to clipboard operation
android-target-tooltip copied to clipboard

Proposal: Keep view separate from Tooltip

Open vovkab opened this issue 9 years ago • 0 comments

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.

vovkab avatar May 11 '16 01:05 vovkab