Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a helpful tooltip in Android [closed]

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:

Diagram

like image 710
Joe Simpson Avatar asked Apr 04 '11 18:04

Joe Simpson


People also ask

What is a hover tooltip?

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.

How do you write tooltip in text?

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" .

How do I display tooltip in Android?

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.


1 Answers

This is the QuickAction UI pattern. Take a look at:

  1. GreenDroid, a collection of Android widgets - namely the QuickAction... widgets such as QuickActionBar, QuickActionGrid etc
  2. How to create a QuickAction dialog in Android
like image 200
Joseph Earl Avatar answered Sep 25 '22 12:09

Joseph Earl