Code example for PagerAdapter

Methods: notifyDataSetChanged

0
    } 
 
    @Override 
    public void notifyDataSetChanged() { 
        mGeneration++;
        super.notifyDataSetChanged(); 
    } 
 
    public int translatePositionWithLabels(int position) {
        if (mModel == null) return -1;
        return mModel.getPositionWithoutLabelsFromPosition(position, mSortOrder);
    } 
 
    @Override 
    public void finishUpdate(ViewGroup container) {
        mReusableView = null;
        super.finishUpdate(container);
    } 
 
    @Override 
    public boolean isViewFromObject(View view, Object object) {