(Android 3.2) I have a TableLayout with 9 buttons. I want to know when any of them are un-pressed, i.e., when a press is complete, i.e., ACTION_UP. I don’t care which button, I just want to know when any button which had been pressed has just been released.
I was hoping there was an Android::onTouch in the XML, like there is an Android::onClick, and I could point them all at one onTouch event handler to look for an ACTION_UP. But there isn’t. I’m trying to avoid writing 9 separate OnTouchListeners.
Any suggestions?
Thanks in advance.
why don’t you add onTouchListener from code and indeed, do what you want to do when you have ACTION_UP, as seen here