@Override
 public void onActivityCreated(@Nullable Bundle savedInstanceState) {
   super.onActivityCreated(savedInstanceState);
   // adapter =  new
   // ViewPagerAdapterSubLeague(getActivity().getSupportFragmentManager(),Titles,NumbOfTabs);
   adapter = new ViewPagerAdapterSubLeague(getChildFragmentManager(), Titles, NumbOfTabs);
   pager.setAdapter(adapter);
   tab.setViewPager(pager);
 }
  @Override
  public View onCreateView(
      LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View view = inflater.inflate(R.layout.league_fixture, container, false);

    pager = (ViewPager) view.findViewById(R.id.sub_pager);
    tab = (SlidingTabLayoutText) view.findViewById(R.id.sub_tabs);
    tab.setCustomTabView(R.layout.sub_custom_tab, R.id.textTabs);
    tab.setDistributeEvenly(true);
    tab.setCustomTabColorizer(
        new SlidingTabLayoutText.TabColorizer() {

          @Override
          public int getIndicatorColor(int position) {
            return getResources().getColor(R.color.tabColorTest);
          }
        });

    return view;
  }