Public boolean onTouch(View v, MotionEvent event) { myGestDetector. OnTouchEvent(event); return false; } I think you should return true here. You view rejects pointer down event by returning false and don't receive any subsequent events because of this.
Actually I just tried the following, which is more or less what you're saying:public boolean onTouch(View v, MotionEvent event) { return myGestDetector. OnTouchEvent(event); } What is this called? Can you point me to some reference?
Thanks alot! – Rob Apr 22 at 7:14 developer.android. Com/reference/android/view/… Returns True if the listener has consumed the event, false otherwise.
– Dr.J Apr 22 at 7:23 Now I have the problem that both onDown and onFling are being called for the same "event" (from a human perspective). I want the onDown to set a random text from an array, and the fling to set the next text (this code is not present in the snippet above). How can I get just the onDown or just the onFling?
– Rob Apr 22 at 8:18 Just do some debug, check touch events flow. It shouldn't be much complicated. – boulder Apr 22 at 9:44.
I'm trying to detect an onFling event for a TextView object. The code below works perfectly for the onDown event, however it fails to get the onScroll or onFling events. The layout is just a TextView inside a LinearLayout.
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.