TabGroup property "tabsBackgroundColor" will only apply the color to the top tab bar's background when the app is shown in "portrait" orientation. When "landscape", the color is ignored and will use the ActionBar's background color instead.
Not that this is because the tab bar is moved inside of the ActionBar when landscape. The work-around is to set the ActionBar's "primaryColor" via an XML theme instead. Also, note that implementing tab bars via an ActionBar is considered deprecated as of Android 5.0 as well.
Steps to reproduce:
- Build and run the below code on Android.
- Hold the device portrait.
- Notice that the top tab bar's background color is red. (This is good.)
- Rotate to landscape.
- Notice top tab bar is dark gray. (This is the issue.)