Code example for DataSetObserver

Methods: onChanged

0
 
		WeakDataSetObserverProxy.register(adapter, new WeakReference<DataSetObserver>(
				mDataSetObserver));
 
		// trigger manually the first time 
		mDataSetObserver.onChanged();
	} 
 
	public void setCallback(WeakReference<PreviousNextProvider.Callback> callback,
			boolean notifyDirectly) {
		mPreviousNextProvider.setCallback(callback, notifyDirectly);
	} 
 
	public void setCountView(CountView countView) {
		mCountView = countView;
	} 
 
	private void updateCount() { 
		if (mCountView == null)
			return; 
		mCountView.setCount(mList.getCount());