I would like to create a tooltip like thing in Android to help show my users what something is, as people have told me they don't know what it is. For an idea of what i'm after here is a drawing:
Alternatively known as a balloon, help balloon, flyover help, or ScreenTip, a Tooltip is a text description near an object. The tooltip is displayed when the user hovers the mouse cursor over the object.
Basic Tooltip HTML: Use a container element (like <div>) and add the "tooltip" class to it. When the user mouse over this <div>, it will show the tooltip text. The tooltip text is placed inside an inline element (like <span>) with class="tooltiptext" .
Setting the tooltip textYou can specify the tooltip text in a View by calling the setTooltipText() method. You can set the tooltipText property using the corresponding XML attribute or API. FloatingActionButton fab = (FloatingActionButton) findViewById(R. id.
This is the QuickAction
UI pattern. Take a look at:
QuickAction...
widgets such as QuickActionBar
, QuickActionGrid
etcIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With