The standard Android UI includes a way to show tooltips for controls by long-clicking them (press and hold). This creates a toast-like message near the control. So, for an Edit icon (the pencil), you can long-click and it will show a tooltip of "Edit".

This is not directly supported in B4A (there's no hintText property), so I wrote some code to do it. Not enough for a class (just 4 subs), so here it is:

To add a tooltip to a view, it's a single line of code in the view's LongClick event listener:

Notes:
- I recommend putting this into a code module so you can use it in all of your app's activities.
- Requires the Reflector and JavaObject libraries.
- The standard Android tooltip shows below the control, but fingers get in the way, so I changed it to appear above the control where possible.

Feel free to use and modify this code as you wish. Please post any fixes or improvements in this thread.

Sorry, I didn't mean that there is a hintText property in Android that B4A is missing (poor wording on my part).

I meant that there is a common UI pattern in Android (tooltips), used in many popular apps (including Google's own apps), that is not easy to do in B4A if you're an intermediate coder like me. (I don't know how easy/hard it is to implement in Android Java either.)

I'd love to see standard UI patterns like this made easier to implement, especially in a RAD tool like B4A.