How to send a click message to a button?

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

How to send a click message to a button?

Postby darolla » Mon Dec 29, 2008 4:32 pm

Hi,

I'd like to develop something like the calculator.

So the user has some buttons in order to fill an edit field.

But in landscape mode the user can use the keyboard to fill the edit field.

In this case I'd like to emulate the button beeing pressed and released.

How can I send a click message to my button?

Greetings & the best wishes for 2009,
Marco
User avatar
darolla
Master Developer
Master Developer
 
Posts: 273
Joined: Thu Sep 25, 2008 5:16 pm
Location: Dortmund, Germany

Top

Postby MrSnowflake » Mon Dec 29, 2008 5:44 pm

Make your OnClickListeners fields and call buttonXOnClickListener.onClick() (or what is it...)
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Postby darolla » Mon Dec 29, 2008 6:31 pm

hi mate,

thanks for your response.

but this way I only trigger the handler, not the visual feedback.

well, I did it myself, in order to come to terms...

greetings,
darolla
User avatar
darolla
Master Developer
Master Developer
 
Posts: 273
Joined: Thu Sep 25, 2008 5:16 pm
Location: Dortmund, Germany

Postby MrSnowflake » Mon Dec 29, 2008 7:04 pm

Oh sorry, didn't realize you wanted the visual push too.
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 5 guests