B4A Library CustomTooltip

This library will allow you to add tooltips to EditText views.


Requirements:

- B4A 3.8x.

- The RichString library.


How to install:

- Copy the CustomTooltip.jar and CustomToolip.xml to your additional libraries directory.


Usage:
B4X:
'Initialize the CustomTooltip library.
Private tooltip1 As CustomTooltip

tooltip1.Initialize(Activity, TextBox1, True)

tooltip1.Text = "This is a tooltip."

tooltip1.Show

All the methods are self explanatory.

Check the attached sample project for more details.


NOTES:

- In some cases, the tooltip might get obscured by the keyboard.
- The tooltip will adopt the same width as the EditText to which it's attached to.
- When using rich strings, mind the font sizes, if you create large sizes the text might not display properly.

Screenshot:

MCdn2oml.png
 

Attachments

  • CustomTooltip_Lib_1.0.zip
    8.3 KB · Views: 426
  • CustomTooltip_Sample.zip
    11.6 KB · Views: 398

JdV

Active Member
Licensed User
Longtime User
Hi

Has there been any work to extend the functionality of this library at all?

For example it would be nice to be able to control where the tool tip will be displayed. (E.g. always above, always to the right etc.)

Also, it would be nice to be able to have a tool tip that fits the entire width of the screen regardless of the width of the edit text field.

If work on this library has long since come to a halt, does anyone know of any alternatives available in B4A?

(For example, has anyone seen anything like this in the forums?: https://github.com/sephiroth74/android-target-tooltip)

Regards

Joe
 

lemonisdead

Well-Known Member
Licensed User
Longtime User
Never seen my PC AT guy since a while. Perhaps more luck in the chat room.
 

Swissmade

Well-Known Member
Licensed User
Longtime User
Very nice
Is this also working for B4J?
 
Top