Code example for AdapterView.OnItemSelectedListener

Methods: onNothingSelected

0
    } 
 
    @Override 
    public void onNothingSelected(AdapterView<?> parent) {
        if (mOnItemSelectedListener != null) {
            mOnItemSelectedListener.onNothingSelected(parent);
        } 
    } 
 
    /** 
     * Set header to be pinned at the top. 
     * 
     * @param viewIndex index of the header view 
     * @param y is position of the header in pixels. 
     * @param animate true if the transition to the new coordinate should be animated 
     */ 
    public void setHeaderPinnedAtTop(int viewIndex, int y, boolean animate) {
        ensurePinnedHeaderLayout(viewIndex);
        PinnedHeader header = mHeaders[viewIndex];
        header.visible = true;
        header.y = y;