java - Both click and longclick respond in listview -


this question has answer here:

i have implemented both onitemclicklistener , onitemlongclicklistener in listview. - itemclick start new activity; - itemlongclick open popup. when longpress item both listeners react.

how set onclick not respond when longpress?

you need return true in longclick onclick not called. @ this: how implement onitemlongclicklistener , onitemclicklistener event on listview row in android?

this question has been answered on forum. :)


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -