public void addFragment(BaseIntroFragment fragment,int backgroundColor){
  mBackgroundColors.put(mFragments.size(),backgroundColor);
  mFragments.add(fragment);
}

public void addFragment ( BaseIntroFragment fragment , int backgroundColor ) { mBackgroundColors . put ( mFragments . size ( ) , backgroundColor ) ; mFragments . add ( fragment ) ; }
add a fragment to the pageradapter .
