Code example for View

Methods: sendAccessibilityEvent

0
     */ 
    public boolean performItemClick(View view, int position, long id) {
        if (mOnItemClickListener != null) {
            playSoundEffect(SoundEffectConstants.CLICK);
            if (view != null) {
                view.sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_CLICKED);
            } 
            mOnItemClickListener.onItemClick(/*this*/null, view, position, id);
            return true; 
        } 
 
        return false; 
    } 
 
    /** 
     * Interface definition for a callback to be invoked when an item in this 
     * view has been clicked and held. 
     */ 
    public interface OnItemLongClickListener { 
        /** 
Connect your IDE to all the code out there  Get Codota for Java