Android: Using default styles

前端 未结 1 1772
半阙折子戏
半阙折子戏 2021-01-26 04:35

Whenever I type the above, I get the following error message from eclip

相关标签:
1条回答
  • 2021-01-26 05:11

    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.

    0 讨论(0)
提交回复
热议问题