Try adding android:clickable="true to your RelativeLayout and you should be able to do it If that doesn't work you might need to implement these two methods also (if you haven't allready): Override public boolean dispatchTouchEvent(MotionEvent ev) { //TouchEvent dispatcher. If (gestureDetector! = null) { if (gestureDetector.
OnTouchEvent(ev)) //If the gestureDetector handles the event, a swipe has been executed and no more needs to be done. Return true; } return super. DispatchTouchEvent(ev); } @Override public boolean onTouchEvent(MotionEvent event) { return gestureDetector.
OnTouchEvent(event); }.
Try adding android:clickable="true" to your RelativeLayout and you should be able to do it. If that doesn't work you might need to implement these two methods also (if you haven't allready): @Override public boolean dispatchTouchEvent(MotionEvent ev) { //TouchEvent dispatcher. If (gestureDetector!
= null) { if (gestureDetector. OnTouchEvent(ev)) //If the gestureDetector handles the event, a swipe has been executed and no more needs to be done. Return true; } return super.
DispatchTouchEvent(ev); } @Override public boolean onTouchEvent(MotionEvent event) { return gestureDetector. OnTouchEvent(event); }.
Android:clickable="true" does the trick. Thanks! – IHeartAndroid Sep 30 at 11:59.
In my viewFlipper some TextViews are loaded dynamically. So far I tried to return false even if I get true, so that the event does not get consumed and gets passed down to the viewFlipper even if the swipe has been made outside the viewflipper. Note that the viewFlipper does not need any explicit onTouchListener.
Does anyone know what to do?
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.