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

padding calculate error #91

@kyze8439690

Description

@kyze8439690

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions