【问题标题】:Error when adding Action Bar添加操作栏时出错
【发布时间】:2013-01-11 18:51:20
【问题描述】:

我正在尝试通过定位来更新我的 Honeycomb 应用程序 SDK 版本 11。我将我的选项添加为 操作栏中的项目,在我的“/res/menu/”中包含以下内容 文件名.xml":

      android:showAsAction="ifRoom|withText" 

但是,我收到以下错误:

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

【问题讨论】:

  • 顺便说一句,我正在使用 Eclipse IDE

标签: android android-actionbar


【解决方案1】:

转到属性并检查您是否已将项目构建目标设置为使用 Honeycomb SDK 构建。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-10-30
    • 2015-02-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多