Reputation: 61
<style name="test" parent="@android:style/WindowTitle"></style>
Whenever I type the above, I get the following error message from eclipse:
Description
Resource Path Location Type
error: Error retrieving parent for item: No resource found that matches the given name '@android:style/WindowTitle'.
styles.xml /alertdialogapp/res/values line 3 Android AAPT Problem
The same error also appears when I use the style @android:style/AlertDialog
Upvotes: 0
Views: 440
Reputation: 152927
WindowTitle
and AlertDialog
are private styles in the platform and you cannot reference them.
Some ancient versions of aapt had a bug which allowed you to reference private styles but it's been fixed a long time ago. Private style resource identifiers are not guaranteed to stay the same across platform builds, so even if you managed to dig up the resource identifier somewhere, it would likely break at some point.
If you need to extend a particular private platform theme, copy the style definitions you need from platform sources to your own project.
Upvotes: 2