Code example for ArrayAdapter

Methods: clear

0
    public void onNothingSelected(AdapterView<?> parent) {
        // ignore 
    } 
 
    public void reset() { 
        mHighlighters.clear();
        mBaseLayers.clear();
        mOverlayLayers.clear();
 
        mIitc.getNavigationHelper().setHighlighter(null);
 
        mLoading = true;
    } 
 
    public void setActiveHighlighter(String name) {
        mActiveHighlighter = name;
 
        int position = mHighlighters.getPosition(mActiveHighlighter);
        if (position >= 0 && position < mHighlighters.getCount())
            mSpinnerHighlighter.setSelection(position);