安卓2.3.3 API 10行动起来吧 [英] android 2.3.3 api 10 action bar

查看:197
本文介绍了安卓2.3.3 API 10行动起来吧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我采用了android 2.3.3(Eclipse的),我想动作栏添加到我的项目。

I'm using android 2.3.3(on eclipse), I would like to add action bar to my project.

我试图添加Android的支持库V7,得到了许多错误是这样的:

I've tried to add android support library V7 and got many errors like this:

[2013年8月12日16时42分36秒 - 应用name_1_1_1] C:\\ PROGRAM
  文件\\ Android的\\ Android的SDK \\演员\\机器人\\ SUPPORT \\ V7 \\应用程序兼容性\\水库\\值-V14 \\ styles_bas​​e.xml:24:
  错误:错误检索父的项目:无资源的发现,
  匹配给定名称'机器人:Widget.Holo.ActionBar。

[2013-08-12 16:42:36 - app name_1_1_1] C:\Program Files\Android\android-sdk\extras\android\support\v7\appcompat\res\values-v14\styles_base.xml:24: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar'.

是否有可能增加支持库或操作栏中添加不同的图书馆吗?

Is it possible to add the support library or add different library for the action bar ?

推荐答案

阅读从Android的官方网站本教程。

你只需要在您的 Android的SDK窗口项目\\演员\\ android的 Android的支持-V7-appcompat.jar 支持JAR \\支持\\ V7 \\应用程序兼容性\\库磁盘上的路径。然后你就可以在Android中使用下面的ActionBar API 11。

Read this tutorial from Android's official site. You just need to include android-support-v7-appcompat.jar support jar in your project from your android-sdk-windows\extras\android\support\v7\appcompat\libs path on your disk. Then you can use ActionBar below API 11 in Android.

官方Android教程是在这里: 操作栏的Andr​​oid官方福尔摩斯酒吧是为我创造的问题,然后我得到了这个解决方案。

Official Android Tutorial is here: Action Bar Android Official Sherlock bar was creating issues for me then I got this solution.

这篇关于安卓2.3.3 API 10行动起来吧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆