Ahmed S.A.
Ahmed S.A.

Reputation: 43

Error when adding Action Bar

I am attempting to update my application for Honeycomb by targeting SDK version 11. I'm adding my options as items in the action bar with the following in my "/res/menu/ fileName.xml":

      android:showAsAction="ifRoom|withText" 

However, I am getting the following error:

    "error: No resource identifier found for attribute 
'showAsAction' in package 'android"

Upvotes: 3

Views: 70

Answers (1)

Daniel Uribe
Daniel Uribe

Reputation: 778

Go to properties and check you had set your project build target to build with the Honeycomb SDK.

Upvotes: 3

Related Questions