English 中文(简体)
- 失踪的父母主题?
原标题:Android - Missing Parent Theme?

我试图在博客文章后给“行动栏”做个风格:

< a href=>http://android- developmenters.blogspot.com/2011/04/calizing-action-bar.html" rel=“nofollow noreferrer'>http://android-Developers.com/2011/04/calization-action-bar.html

使用此源代码 :

svn check out http://stemd-action-bar.googlecode.com/svn/trunk/ styled-action-bar-read- only .com/svn/trunk/stitled-action-bar-re-read- only

然而,我在 /res/value/stems.xml 中遇到问题。

这一点:

<!-- 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>

错误与 :

错误获取项目父父: 找不到匹配给定名称和机器人的资源: 样式/ 部件 。 Holo. Light. ActionBarView_ TabView.

然而,用下面的答案, 通过Android的源头挖掘, 我可以看到这个主题确实存在:

最佳回答
问题回答




相关问题
Creating a Style in code behind

Does anyone know how to create a wpf Style in code behind, I can t find anything on the web or MSDN docs. I have tried this but it is not working: Style s = new Style(typeof(TextBlock)); s....

WPF Custom Themes

I have a simple question which is giving me some difficulty. I have downloaded a custom them for WPF of the net. Now i want to apply this theme to my App instead of the default one. How do i do that,...

Is it sometimes bad to use <BR />?

Is it sometimes bad to use <BR/> tags? I ask because some of the first advice my development team gave me was this: Don t use <BR/> ; instead, use styles. But why? Are there negative ...

WPF - How to apply effect to a cropped image?

I have an Image being clipped like so: <Image Width="45" Grid.Column="0" Source="{Binding Photo}"> <Image.Clip> <RectangleGeometry Rect="0,0,45,55" RadiusX="8" RadiusY="8" /...

WPF ListView : Header styling

I want to have a ListView with columns and a particular style: The background for ALL column headers should be transparent except when the mouse is over in one of them. When this happends, the ...