In tabs.xml I can set the following property on android.support.design.widget.TabLayout:
app:tabIndicatorColor="@android:color/white"
However, I want to use a style by setting:
android:theme="@style/TabsLight"
then defining:
<style name="TabsLight" parent="ThemeOverlay.AppCompat.ActionBar">
<item name="app:tabIndicatorColor">@android:color/white</item>
</style>
This doesn't work, giving me error:
Error APT0000: No resource found that matches the given name: attr 'app:tabIndicatorColor'. (APT0000)
Why am I getting this error (which doesn't happen if I set the property on the layout directly) and how do I resolve it?
The namespace "app" is defined in tabs.xml as:
xmlns:app="http://schemas.android.com/apk/res-auto"