I would like to customize tab widget by replacing the style with my own style. The item I am going to replace is as follow :
<item name="android:tabLayout">@android:layout/tab_indicator_holo</item>
But I got this error : No resource found that matches the given name: attr 'android:tabLayout'
I have set the parent style like this :
<style name="customTabWidget" parent="@android:style/Widget.Holo.TabWidget">
The Project build target : Android 4.0
I also have cleaned the project but the error still exits. How to fix the error?
Thanks in advance.
tabLayout
is a non-public attribute currently. Here's the bug tracking this: code.google.com/p/android/issues/detail?id=65832 If you want to customize TabWidget this way you might have to do it programmatically using TabSpec.setIndicator. – Klaus