Dewey Tooltip
The Dewey Tooltip widget.
Example:
DeweyTooltip .make(this, anchorView) .setText("Some text to show in the tooltip", true) .setCallback(...) .setPreferredSideOfAnchor(DeweyTooltip.SideOfAnchor.BOTTOM) .setDuration(3000) .show()*
Types
Link copied to clipboard
annotation class ArrowGravity
Link copied to clipboard
Link copied to clipboard
annotation class SideOfAnchor
Functions
Link copied to clipboard
Set the margin distance between the tooltip and the anchor. 8dp by default.
Link copied to clipboard
Set the margin distance between the tooltip and the anchor in dp
Link copied to clipboard
Set the view to which the tooltip will attach to. If you change the anchor view after the tooltip is shown, you need to call show again.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Set tooltip body click listener. This is optional, if not set, clicking will dismiss the tooltip.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setPrimaryButton(@StringRes textResId: Int, listener: DeweyTooltip.OnClickListener?): DeweyTooltip
Set the primary button text and click listener
Link copied to clipboard
fun setSecondaryButton(@StringRes textResId: Int, listener: DeweyTooltip.OnClickListener?): DeweyTooltip
Set the secondary button text and click listener
Link copied to clipboard
Set the body text of this tooltip.