我將以下主題添加到了我的應用程序,其背景顏色爲white.But但出現以下錯誤,我不確定我出錯的位置。將自定義主題添加到應用程序時出錯
Error: Color types not allowed (at 'android:windowBackground' with value '#FF0000')
。
<style name="MyTheme" parent="@android:style/Theme.Light">
<item name="android:windowBackground">#FF0000</item>
</style>
而且引用的mymanifest主題:
<activity
android:name=".MyActivity"
android:theme="@style/MyTheme" />
任何意見或建議?由於
http://stackoverflow.com/questions/4342405/android-setselector-color-for-listview-not-working – PaperThick 2013-03-20 13:21:25