在我的应用程序中,我终于决定摆脱ActionBarSherlock。为了做到这一点,我不得不解决一些我的风格。当编译这样的风格的应用程序:IntelliJ ActionBar样式 - 资源未找到
<style name="Theme.MyApp" parent="@android:style/Theme.Holo">
<item name="android:actionDropDownStyle">@style/MyAppDropDownStyle</item>
</style>
<style name="MyAppDropDownStyle" parent="@android:style/Widget.Holo.Spinner.DropDown.ActionBar">
<item name="android:popupBackground">@color/my_color</item>
</style>
IntelliJ Idea引发错误Error:(50, -1) android-apt-compiler: [MyApp] C:\SLI\Repo\Android\MyApp\res\values\themes.xml:50: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Spinner.DropDown.ActionBar'.
。 IntelliJ可以通过“转到>声明”选项找到这个资源。任何想法如何解决这个错误?提前致谢。
你的构建目标是什么? 11或13? – 2015-02-09 12:18:22
minSdkVersion是14,目标20. – Seblis 2015-02-09 12:20:04
如果这个链接的解决方案是你的答案,告诉我,把它作为答案: http://stackoverflow.com/questions/13726018/adding-holo-theme-to-2 -3-6-error-using-holoeverywhere – 2015-02-09 12:23:39