Can we display tooltip for a button?

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Can we display tooltip for a button?

Postby prajkti.khadse » Mon Mar 23, 2009 1:00 pm

Hi all

i want to display tooltip for a button.

is it really possible in Android?

if yes can anybody please tell me how?
prajkti.khadse
Developer
Developer
 
Posts: 32
Joined: Thu Mar 19, 2009 1:01 pm
Location: Bangalore

Top

Postby WarrenFaith » Wed Mar 25, 2009 9:07 am

I never done that but you could use the long click to display a dialog than.
Use yourButton.setOnLongClickListener() to do so.
WarrenFaith
Moderator
Moderator
 
Posts: 227
Joined: Fri Mar 13, 2009 10:59 am
Location: Berlin, Germany

Postby prajkti.khadse » Wed Mar 25, 2009 11:41 am

[sub]

yeah that's fine but what i want is to display a descriptive text when the button gets focus... :roll:

is is possible....???
prajkti.khadse
Developer
Developer
 
Posts: 32
Joined: Thu Mar 19, 2009 1:01 pm
Location: Bangalore

Postby MrSnowflake » Wed Mar 25, 2009 8:33 pm

You can't really focus Views when you use touchscreen.
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Postby Teikan » Thu Apr 02, 2009 7:34 pm

Would it be possible to make a double-click type effect? Touch the button, get the tooltip like an on-focus, and another tap to activate the button? You could touch the tooltip to reset it i'd imagine...
It does seem like an idea that has merit.
Also, how would you make a button that creates a popup, like a dialog box with pertinent info, centered on the button or to the side, like a tooltip would?
Teikan
Freshman
Freshman
 
Posts: 9
Joined: Wed Jan 28, 2009 5:38 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Google [Bot] and 5 guests