Android @style/MyActionBarTitleText在哪里

Android @style/MyActionBarTitleText在哪里,android,xml,tags,android-actionbar,Android,Xml,Tags,Android Actionbar,我是android新手,正在学习android开发教程。我试图找出所有xml文件和标记是如何组合在一起的 在google actionbars教程中,一种自定义样式,即themes.xml,如下所示: <!-- ActionBar styles --> <style name="MyActionBar" parent="@android:style/Widget.Holo.ActionBar"> <item name="

我是android新手,正在学习android开发教程。我试图找出所有xml文件和标记是如何组合在一起的

在google actionbars教程中,一种自定义样式,即themes.xml,如下所示:

<!-- ActionBar styles -->
    <style name="MyActionBar"
           parent="@android:style/Widget.Holo.ActionBar">
        <item name="android:titleTextStyle">@style/MyActionBarTitleText</item>
    </style>

@样式/MyActionBartitletText

我找不到或不理解“@style/MyActionBarTitleText”是在哪里定义的,在Eclipse中也没有任何编译错误。当像这样引用一个标记时,我认为它必须在我的项目的某个地方的xml文件中定义,但我找不到它?

样式xml是在res/drawable[-mdpi/ldpi/xhdpi]中定义的

样式定义活动的外观。您可以在样式中定义颜色、主题和形状。在此处阅读有关样式和其他资源的更多信息


是的,您可以在:res->values->styles.xml中找到它


您还可以在styles.xml文件中更改应用程序主题/样式

我查看了styles.xml文件,没有定义名为“MyActionBarTitleText”的xml元素。在我的项目中,res/drawable named style.xml下没有文件,也没有包含“MyActionBarTitleText”元素的任何其他xml文件。