在我的應用程序中,我終於決定擺脫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