Android - Missing parent theme?

I am trying to create an ActionBar by following this blog post:

http://android-developers.blogspot.com/2011/04/customizing-action-bar.html

With this source code:

svn checkout http://styled-action-bar.googlecode.com/svn/trunk/ styled-action-bar-read-only

However, I get problems in /res/values/styles.xml.

It:

<!-- style for the tabs -->
<style name="MyActionBarTabStyle" parent="android:style/Widget.Holo.Light.ActionBarView_TabView">
    <item name="android:background">@drawable/actionbar_tab_bg</item>
    <item name="android:paddingLeft">32dp</item>
    <item name="android:paddingRight">32dp</item>
</style>

It is an error with:

Error retrieving parent for item: No resource found that matches the given name 'android:style/Widget.Holo.Light.ActionBarView_TabView'.

However, using the following answer and making my way through the source for Android, I see that the theme really exists:

stack overflow

The only thing I changed in the project was to move it from android-11to android-14, and then run “Android”> “Fix Project Properties” in Eclipse. I note that the repo associated with this answer, which lists the style, is on the main server, so I cannot understand why the theme would be unreasonable.

android-14 , , .

+3
2

fooobar.com/questions/126700/..., Widget_Holo_Light_ActionBar_TabView, Widget_Holo_Light_ActionBarView_TabView. , , . , "" API 13 - 11, 13, , 14, . "" , .

+8

All Articles