I\'m using a TabLayout for Tabbed navigation in my app. I have a really weird issue with it, I have created 4 tabs using this code:
TabLayout
private int[
here is solution, paste this code in you onCreate Activity because using tabs 0 index not triggers directly this is easy way to do
viewPager.setCurrentItem(1); if (viewPager.getCurrentItem()==1) { viewPager.setCurrentItem(0); }