How to customize individual tabs? (changing background color, indicator color and text color)
Just set your custom view at the tab creation time, something like: final Tab firstTab = actionBar.newTab() .setText(mAppSectionsPagerAdapter.getPageTitle(0)) .setCustomView(R.id.custom_tab_view_red); final Tab secondTab = actionBar.newTab() .setText(mAppSectionsPagerAdapter.getPageTitle(1)) .setCustomView(R.id.custom_tab_view_blue); // etc actionBar.addTab(firstTab); actionBar.addTab(secondTab); // etc in inCreate(). You’ll also have to define Views corresponding to the above ids in your xml layout file (and not styles). Or, if … Read more