I copy the this code from the styles.xml file in framework-res module
<style name="Theme"> <item name="colorForeground">@android:color/bright_foreground_dark</item> <item name="colorForegroundInverse">@android:color/bright_foreground_dark_inverse</item> <item name="colorBackground">@android:color/background_dark</item>
.
<style name="Theme.Black"> <item name="android:windowBackground">@android:color/black</item> <item name="android:colorBackground">@android:color/black</item> </style>
As you see, they all have a attribute name which's value is windowBackground. But the formar has a android:
and the latter doesn't. Is it really necessary to write a android:
prefix in android framework?
@[package:]type:name
和?[package:]type:name
应该使用斜杠来分隔类型和名称,就像这样:@[package:]type/name
和?[package:]type/name
,而不是冒号。 - Lv99Zubat