Code example for GestureDetector

Methods: onTouchEvent

0
					.getScaledTouchSlop(); 
			if (isScrolling) { 
				showSelector = false; 
				invalidate(getRefreshedSelectorBounds()); 
			} 
			gestureDetector.onTouchEvent(event); 
			return isScrolling; 
		} 
	}; 
	 
	private OnGlobalLayoutListener onGlobalLayoutListener = new ViewTreeObserver.OnGlobalLayoutListener()
    { 
        @Override 
        public void onGlobalLayout() 
        { 
    		if(headerChangedDuringLayout){ 
    			if(getChildCount() > 1){ 
    				removeViewAt(1); 
    			} 
    			if(header != null){ 
    				addView(header);