Code example for SparseIntArray

Methods: clear

0
        resetMappings(); 
        notifyDataSetChanged();
    } 
 
    private void resetMappings() { 
        mListMapping.clear();
        mRemovedCursorPositions.clear();
    } 
 
    @Override 
    public Object getItem(int position) {
        return super.getItem(mListMapping.get(position, position));
    } 
 
    @Override 
    public long getItemId(int position) {
        return super.getItemId(mListMapping.get(position, position));
    } 
 
    @Override 
    public View getDropDownView(int position, View convertView, ViewGroup parent) {