Android - ListView fling gesture triggers context menu?

Check the return value in your overrided onFling method You need to return "true" in order to consume the event, if you do not consume the fling event, it will be passed back up through the android system and possibly trigger other events such as the onLong (context menu) event.

Check the return value in your overrided onFling method. You need to return "true" in order to consume the event, if you do not consume the fling event, it will be passed back up through the android system and possibly trigger other events such as the onLong (context menu) event.

Thanks. It turned out to be two problems: 1) I didn't return True. 2) I was using the emulator, which is apparently a bit sluggish on my box.

– Jason Antman Nov 23 '09 at 22:23.

I'm relatively new to Android development. I'm developing an app with a ListView. I've followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, it pulls up the context menu for the item.

I just want the fling action to be handled in code (my app does one list per date and I want to use the fling gesture to move back and forth in days). Does anyone know how to suppress the context menu if the gesture is recognized?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions