Code example for DataSetObservable

Methods: unregisterObserver

0
     * @see android.widget.Adapter#unregisterDataSetObserver(DataSetObserver) 
     */ 
    @Override 
    public void unregisterDataSetObserver(DataSetObserver observer)
    { 
        dso.unregisterObserver(observer);
    } 
 
    /** 
     * {@inheritDoc} 
     * @see android.widget.Adapter#getCount() 
     */ 
    @Override 
    public int getCount() 
    { 
        int count = 0;
        // getCount() is the count of all adapters, plus one for each header 
        for (Adapter a : adapter_list)
        { 
            count += a.getCount() + 1;
        }