florent37 / ViewTooltip

A fluent tooltip for Android
Apache License 2.0
1.08k stars 131 forks source link

padding calculate error #91

Open kyze8439690 opened 4 years ago

kyze8439690 commented 4 years ago

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);
m1r1r2 commented 3 years ago

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 .