Code example for TouchDelegate

0
                delegate.getHitRect(delegateArea);
                delegateArea.top -= sizeToExpand;
                delegateArea.bottom += sizeToExpand;
                delegateArea.left -= sizeToExpand;
                delegateArea.right += sizeToExpand;
                TouchDelegate expandedArea = new TouchDelegate(delegateArea, delegate);
                // give the delegate to an ancestor of the view we're 
                // delegating the area to 
                parent.setTouchDelegate(expandedArea);
 
            }; 
        }); 
    } 
 
    protected abstract void initViews(); 
    protected abstract void initListeners(); 
 
}