Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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"
like image 426
Ahmed S.A. Avatar asked Feb 17 '26 08:02

Ahmed S.A.


1 Answers

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

like image 98
Daniel Uribe Avatar answered Feb 19 '26 20:02

Daniel Uribe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!