Home > Enterprise >  Android: add labels to clickable views
Android: add labels to clickable views

Time:02-03

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

CodePudding user response:

Add this to your corresponding view

android:tooltipText="Sample Text"

CodePudding user response:

Those are called Tooltips. You an read more about them here: https://developer.android.com/guide/topics/ui/tooltips

  •  Tags:  
  • Related