我一直在建立这个应用程序一段时间,并没有任何问题的主题,直到我今天更新到最新的平台工具。现在,它告诉我样式TextAppearance.Holo找不到
error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Holo.Light.Medium.Inverse'.
error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Holo.Light.Medium'.
error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Holo.Light.Large'.
这是我的styles.xml导致该问题的一部分,但是,正如我所说,它已经好几个月没改变,工作得很好,直到今天!
<style name="BD.TextAppearance.Medium.Inverse" parent="@android:style/TextAppearance.Holo.Light.Medium.Inverse">
<item name="android:textColor">#FFF</item>
<item name="android:textStyle">bold</item>
</style>
<style name="BD.TextAppearance.Medium" parent="@android:style/TextAppearance.Holo.Light.Medium">
<item name="android:textColor">#666666</item>
<item name="android:textSize">16sp</item>
</style>
<style name="BD.TextAppearance.Large" parent="@android:style/TextAppearance.Holo.Light.Large">
<item name="android:textColor">#666666</item>
<item name="android:textSize">20sp</item>
</style>
- =编辑= - 我开始与价值观乱搞和事实证明,它并发现这些样式:
<style name="BD.TextAppearance" parent="@android:style/TextAppearance">
<item name="android:textColor">#FFF</item>
<item name="android:textStyle">bold</item>
</style>
<style name="BD.TextAppearance.Medium.Inverse" parent="@android:style/TextAppearance.Medium.Inverse">
<item name="android:textColor">#FFF</item>
<item name="android:textStyle">bold</item>
</style>
但不是这些:
<style name="BD.TextAppearance" parent="@android:style/TextAppearance.Holo">
<item name="android:textColor">#FFF</item>
<item name="android:textStyle">bold</item>
</style>
<style name="BD.TextAppearance.Medium.Inverse" parent="@android:style/TextAppearance.Light.Medium.Inverse">
<item name="android:textColor">#FFF</item>
<item name="android:textStyle">bold</item>
</style>
你现在找到原因了吗? – KarlKarlsom
不,我只是一旦得到它的工作就跟着它。 – CaseyB
@CaseyB,你是否编译为平台的一部分?我问,因为看起来TextAppearance.Holo.Light由于某种原因而不公开(即使TextAppearance.Holo是公开的)。如果您正在编译平台,您将能够看到这些样式,但是如果您正在编译SDK,它将无法找到它们。只是一个想法。 –