Code example for ListAdapter

Methods: isEmpty

0
        mSectionResourceId = sectionResourceId;
        mBaseAdapter = baseAdapter;
        mBaseAdapter.registerDataSetObserver(new DataSetObserver() {
            @Override 
            public void onChanged() { 
                mValid = !mBaseAdapter.isEmpty();
                notifyDataSetChanged();
            } 
 
            @Override 
            public void onInvalidated() { 
                mValid = false;
                notifyDataSetInvalidated();
            } 
        }); 
    } 
 
    public void setSections(Section[] sections) {
        mSections.clear();
 
Stop searching for code, let great code find you!  Add Codota to your java IDE