Эй, ребята, я новичок в разработке для Android, у меня есть вопрос для проекта, я работаю над:Настройка стилей в Android
Используя эти стили, стиль мой actionbar
:
<resources>
<!-- the theme applied to the application or activity -->
<style name="CustomActionBarTheme"
parent="@style/Theme.Holo.Light.DarkActionBar">
<item name="android:actionBarStyle">@style/MyActionBar</item>
</style>
<!-- ActionBar styles -->
<style name="MyActionBar"
parent="@style/Widget.Holo.Light.ActionBar.Solid.Inverse">
<item name="android:background">@drawable/actionbar_background</item>
</style>
</resources>
I получить ошибку для обоих стилей, они говорят:
error: Error retrieving parent for item: No resource found that matches the given name '@style/
Theme.Holo.Light.DarkActionBar'.
error: Error retrieving parent for item: No resource found that matches the given name '@style/
Widget.Holo.Light.ActionBar.Solid.Inverse'.
Я помещаю их в отдельный файл XML
называется темы. В моем стиле XML
файл У меня есть тема android:Theme.Light
Если бы вы могли дать мне предложение или что-то еще, то что здесь не так, я был бы признателен!
Дэвид
изменения в 'родителя =«@ андроида: стиль/Theme.Holo.Light.DarkActionBar»' – mt0s