Error trying to customize Widget.AppCompat.ActionBar

I have just changed to using the appcompat theme:

<?xml version="1.0" encoding="utf-8"?>

    <style name="MyTheme" parent="Theme.AppCompat">

        <item name="android:actionBarStyle">@style/MyActionBar</item>

<style name="MyActionBar" parent="@android:style/Widget.AppCompat.ActionBar">
        <item name="android:backgroundStacked">@color/orange</item>
        <item name="android:background">@color/orange</item>


I am importing the AppCompat libs in build.xml

compile ""

So why is this error below happening?

Error:Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.AppCompat.ActionBar'.

From these docs it appears it should work.


I found that when using support libraries one should ommit the android: prefix. So just try:



As I've said, for support themes you need to ommit android:. That means everywhere:

<style name="MyTheme" parent="Theme.AppCompat">
    <item name="actionBarStyle">@style/MyActionBar</item>

<style name="MyActionBar" parent="Widget.AppCompat.ActionBar">
    <item name="backgroundStacked">@color/orange</item>
    <item name="background">@color/orange</item>

This is all nicely pointed out in the documentation.

Need Your Help

J2me textfields layout

layout java-me textfield

I have 3 textfields for a date in a midlet(in order to combine dots and numbers). Two of them accept 2 digits, that last one 4 digits(year). How can I place them into one row?

insert data with add previous row data in a column

php mysql sql

May be easy way but I cant do this.I was try sum()in insert operation but its not working. I have table name amount.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.