M
M
max_vr2016-07-01 00:09:17
Java
max_vr, 2016-07-01 00:09:17

Why do 2 listeners work at once?

I have a list that has an onItemClickListener and an onItemLongClickListener. According to the usual tapu, method1 should work, with a long press, method2. However, with a long press, both methods work. With what can be connected? I'm a beginner, don't judge too harshly, I didn't google anything

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
IceJOKER, 2016-07-01
@IceJOKER

return true; from the long click callback to signal that you've handled the event

stackoverflow.com/questions/7422523/onclicklistene...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question