Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible set a hint for android buttons?

Tags:

android

Is it possible set a hint for the button in android?

like image 343
user622630 Avatar asked Feb 18 '11 05:02

user622630


2 Answers

The hint property is only taken into account as a default substitute if the Button text is absent. It is not a real "tooltip" as in HTML title attribute you can see when you hover over an element.

like image 101
Alain Pannetier Avatar answered Sep 30 '22 11:09

Alain Pannetier


Yes myButton.setHint in code or android:hint in XML. A Button inherits them from TextView.

like image 34
techiServices Avatar answered Sep 30 '22 11:09

techiServices