ViewTooltip icon indicating copy to clipboard operation
ViewTooltip copied to clipboard

padding calculate error

Open kyze8439690 opened this issue 3 years ago • 1 comments

https://github.com/florent37/ViewTooltip/blob/master/viewtooltip/src/main/java/com/github/florent37/viewtooltip/ViewTooltip.java#L576 https://github.com/florent37/ViewTooltip/blob/master/viewtooltip/src/main/java/com/github/florent37/viewtooltip/ViewTooltip.java#L837

Code above will cause text looks have extra padding on the left.

drawBubble should be call like below:

drawBubble(new RectF(shadowPadding, shadowPadding, getWidth() - shadowPadding, getHeight() - shadowPadding), corner, corner, corner, corner);

kyze8439690 avatar Jul 09 '20 08:07 kyze8439690

hello , I using the florent37 tootip in one of my project. but i m facing difficulties in setting the tooltip margin as it didnt provide any direct option of it .can you please let me know how this i can resolve .

m1r1r2 avatar Feb 16 '21 12:02 m1r1r2