Code example for AdapterView.OnItemSelectedListener

Methods: onNothingSelected

    public void onNothingSelected(AdapterView<?> parent) {
        if (mOnItemSelectedListener != null) {
     * 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) {
        PinnedHeader header = mHeaders[viewIndex];
        header.visible = true;
Experience pair programming with AI  Get Codota for Java