'Android: add labels to clickable views

Is there any common way to add a label to any clickable View to show what it does? For example if I long press a gear button I want the user see a label "Options". Something like this in WhatsApp

Label for button



Solution 1:[1]

Add this to your corresponding view

android:tooltipText="Sample Text"

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Siddarth Jain