Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

padding calculate error #91

Open
kyze8439690 opened this issue Jul 9, 2020 · 1 comment
Open

padding calculate error #91

kyze8439690 opened this issue Jul 9, 2020 · 1 comment

Comments

@kyze8439690
Copy link

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
Copy link

m1r1r2 commented Feb 16, 2021

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 .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants