@@ -0,0 +1,1065 @@
+package com.example.profbola.bakingtime.utils;%0A%0Aimport android.support.v4.app.Fragment;%0Aimport android.support.v4.app.FragmentManager;%0Aimport android.support.v4.app.FragmentPagerAdapter;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0A/**%0A * Created by prof.BOLA on 7/2/2017.%0A */%0A%0Apublic class RecipePagerAdapter extends FragmentPagerAdapter %7B%0A%0A    private final List%3CFragment%3E mFragmentList = new ArrayList%3C%3E();%0A    private final List%3CString%3E mFragmentTitleList = new ArrayList%3C%3E();%0A%0A    public RecipePagerAdapter(FragmentManager fm) %7B%0A        super(fm);%0A    %7D%0A%0A    @Override%0A    public Fragment getItem(int position) %7B%0A        return mFragmentList.get(position);%0A    %7D%0A%0A    @Override%0A    public int getCount() %7B%0A        return mFragmentList.size();%0A    %7D%0A%0A    @Override%0A    public CharSequence getPageTitle(int position) %7B%0A        return mFragmentTitleList.get(position);%0A    %7D%0A%0A    public void addFragment(Fragment fragment, String title) %7B%0A        mFragmentList.add(fragment);%0A        mFragmentTitleList.add(title);%0A        notifyDataSetChanged();%0A    %7D%0A%7D%0A

Add RecipePagerAdapter for ViewPager TabLayout