Code example for DataSetObserver

Methods: onChanged

0
        return mWrapped.isEnabled(position);
    } 
 
    public void notifyDataSetChanged() { 
        if (mLastDataSetObserver != null) {
            mLastDataSetObserver.onChanged();
        } 
    } 
 
    public View onPrepareView(View view, int position) {
        if (mCallback != null) {
            return mCallback.onPrepareView(view, position);
        } 
        return view;
    } 
 
    @Override 
    public void registerDataSetObserver(DataSetObserver dataSetObserver) {
        mWrapped.registerDataSetObserver(mLastDataSetObserver = new WrapperDataSetObserver(
                dataSetObserver));
    }