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[
Try selecting the tab after you've populated them.
TabLayout tabLayout = setTabLayout(); if (tabLayout != null) { for (int i = 0; i < 4; i++) { tabLayout.getTabAt(i).setIcon(tabIcons[i]); } tabLayout.getTabAt(0).select(); }