Code example for DataSetObservable

0
import android.view.ViewGroup; 
import android.view.ViewGroup.LayoutParams; 
 
 
public class PagerAdapter { 
        private DataSetObservable mObservable = new DataSetObservable();
 
        public static final int POSITION_UNCHANGED = -1;
        public static final int POSITION_NONE = -2;
 
        private View mBehind;
        private View mContent;  
        private LayoutParams mContentParams;
 
        public void setBehind(View v) {
                mBehind = v;
        } 
 
        public void setContent(View v, LayoutParams params) {
                mContent = v;
                mContentParams = params;