user622630
user622630

Reputation: 221

Is it possible set a hint for android buttons?

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

Upvotes: 5

Views: 7954

Answers (3)

Ndupza
Ndupza

Reputation: 780

You can also drg and drop onto your GUI and right click on the button, and select hint.

Upvotes: 0

Alain Pannetier
Alain Pannetier

Reputation: 9514

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.

Upvotes: 5

techi.services
techi.services

Reputation: 8533

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

Upvotes: 3

Related Questions