sephiroth74 / android-target-tooltip

Create Toast like tooltips, but targets can be specified, plus custom properties and features
MIT License
1.49k stars 278 forks source link

How to you use in Java? #145

Open iamkdblue opened 4 years ago

kevin4dhd commented 3 years ago

the same question

GXSZone commented 3 years ago

the same question

    new Tooltip.Builder(widget.getContext())
                .anchor(x  , y)
                .showDuration(2000)
                .text(contents)
                .closePolicy(ClosePolicy .Companion.getTOUCH_ANYWHERE_CONSUME())
                .create()
                .show(widget , Tooltip.Gravity.TOP , false);