0
我想擺脫我的actiobars並使用工具欄來更新我的應用程序。我現在還沒有爲5.0製作應用程序,所以沒有其他材料的好處。試圖在android中實現工具欄
從下面的另一篇文章中我做了我的themes.xml是這樣的:
<style name="AppTheme.Base" parent="Theme.AppCompat">
<item name="colorPrimary">@color/mycolorprimary</item>
<item name="colorPrimaryDark">@color/mycolorprimarydark</item>
<item name="android:windowNoTitle">true</item>
<item name="windowActionBar">false</item>
</style>
我遇到的第一個問題是「風格」是引發此錯誤:
Element Style must be declared
我想你應該編輯values \ styles.xml不是themes.xml,其中的themes.xml位於你的android項目中? – 2015-03-02 07:32:18