Android SDK Version


public final class ToolTipPopup
This displays a popup tool tip for a specified view.
Nested Class Summary
Modifier and TypeClassDescription
public enumToolTipPopup.Style
The values here describe the styles available for the tool tip class.
public classToolTipPopup.Companion
Constructor Summary
ConstructorDescription
ToolTipPopup(String text, View anchor)
Method Summary
Modifier and TypeMethodDescription
final UnitsetStyle(ToolTipPopup.Style style) Sets the Style of this tool tip.
final Unitshow() Display this tool tip to the user
final UnitsetNuxDisplayTime(Long displayTime) Set the time (in milliseconds) the tool tip will be displayed.
final Unitdismiss() Dismiss the tool tip
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail

ToolTipPopup

ToolTipPopup(String text, View anchor)
Parameters:
text - The text to be displayed in the tool tip
anchor - The view to anchor this tool tip to.
Method Detail

setStyle

 final UnitsetStyle(ToolTipPopup.Style style)
Sets the Style of this tool tip.
Parameters:
style - the style for the tool tip

show

 final Unitshow()
Display this tool tip to the user

setNuxDisplayTime

 final UnitsetNuxDisplayTime(Long displayTime)
Set the time (in milliseconds) the tool tip will be displayed. Any number less than or equal to 0 will cause the tool tip to be displayed indefinitely
Parameters:
displayTime - The amount of time (in milliseconds) to display the tool tip

dismiss

 final Unitdismiss()
Dismiss the tool tip