How to add page title and icon in android FragmentPagerAdapter

If you are using the design support library TabLayout, you can simply call:

tabLayout.getTabAt(i).setIcon();

Leave a Comment