Recently I was reading about onTouch
and SimpleGesturesListener
.While reading I came to this line:-
true if the event is consumed else false
Now I am quite confused and have some questions as follows :
1) What does consumed
means in simple way ?
2) In this example :
public boolean onTouch(View arg0, MotionEvent arg1) {
// TODO Auto-generated method stub
float currentX,currentY;
int action=arg1.getAction();
if (gestureDetector.onTouchEvent(arg1)) {
// single tap
return true;
}
If I make it return false
what will actually happen .Will it means that event is not consumed ?
2) In the above code if I make return null
and also in onTouch if I make the same what will happen ?
Please answer I am a beginner .