ButtonDown and ButtonUp events for Android screen buttons?

Posted by Bret on Stack Overflow See other posts from Stack Overflow or by Bret
Published on 2010-05-01T17:11:56Z Indexed on 2010/05/01 17:17 UTC
Read the original article Hit count: 298

Filed under:

Is there a way to get an onButtonDown or onButtonUp event for a soft button (i.e. not a physical hardware button, but a button on the screen)? I have a button on the screen that I want the user to hold down for X seconds. To do this I need to capture the buttonDown and buttonUp events separately.

Thanks,

Bret

© Stack Overflow or respective owner

Related posts about android-sdk