Button_Up event premature?

Bas Hamstra

Member
Licensed User
Longtime User
I notice something strange on my tablet.I have some rather big statelist drawable buttons, made in designer.

When I shortpress the button and log the events, the log shows this:
**ButtonDown
**ButtonUp

That's normal and expected. Now when I *hold* the button carefully pressed, the log consistently shows this:
**ButtonDown
**ButtonUp
**ButtonDown

In other words it generates a ButtonUp event where there was no button up! I can reproduce this behaviour 10 times in a row.

Could be my tablet is crappy, but this happens SO consistently that I doubt it.

This annoys me, because I want to SEE that the sld button is pressed, before I jump to a routine. That's why I put it in Button_Up deliberately.

Can somebody help me out here?

Bas Hamstra
 

Bas Hamstra

Member
Licensed User
Longtime User
At my GS2 phone, the problem does not occur

My GS2 phone doesn't show the problem. I can longpress the button and it patiently waits till I release it before jumping to the next screen.

Bas
 
Upvote 0

jazzzzzzz

Active Member
Licensed User
Longtime User
Tested it on several devices including Galaxy Tab 10" and it works fine here.
i have a Galaxy note 10.1 2014 edition running android 4.3...I have the issue as above...

button down gaves

down
up
down

button up gaves button up only....Any body elese have this issue?any way to solve?
 
Upvote 0
Top