【发布时间】:2010-07-26 22:26:27
【问题描述】:
我想为我的第一个 Android 应用定义一个主题。我使用 Eclipse 并关注 this tutorial 但有问题。
步骤:
A.我创建了带有内容的 values/styles.xml 文件
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="default_splashScreen">
<item name="android:background">@drawable/bg</item>
</style>
</resources>
B.我创建了带有内容的 values/themes.xml 文件
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme" parent="android:Theme">
<item name="SplashScreen">@style/default_splashScreen</item>
</style>
</resources>
现在 Eclipse 总是抱怨 item name="SplashScreen" 节点并显示消息“No resource found...”。我只是想让 SplashScreen 调用 default_splashScreen 样式。
怎么了? 谢谢!
【问题讨论】:
标签: android eclipse themes styles styling