Android actionbar如何添加支持库v7 appcompat for Eclipse [英] Android actionbar how to add supporting library v7 appcompat for Eclipse

查看:441
本文介绍了Android actionbar如何添加支持库v7 appcompat for Eclipse的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照 Android - ActionBar 中的每个步骤添加操作栏。
我从ActionBarActivity扩展活动:
public class MainActivity extends ActionBarActivity

I followed every steps in Android - ActionBar to add action bar. I extend the activity from ActionBarActivity: public class MainActivity extends ActionBarActivity

我需要添加appcompat v7支持库,如这里:在添加资源库中,eclipse部分。最后一步:

I need to add appcompat v7 support library as in here: In "Adding libraries with resources", eclipse section. The last steps:

将库添加到您的应用程序项目中:

"Add the library to your application project:


  1. 在项目资源管理器中,右键单击项目并选择属性。

  2. 在库窗格中,单击添加。

  3. 选择库项目并单击例如,appcompat项目应列为android-support-v7-appcompat。

  4. 在属性窗口中,单击确定。

  1. In the Project Explorer, right-click your project and select Properties.
  2. In the Library pane, click Add.
  3. Select the library project and click OK. For example, the appcompat project should be listed as android-support-v7-appcompat.
  4. In the properties window, click OK. "


    步骤2是找不到库窗格的地方。如何将库添加到我的项目?

Step 2 is where I can't find the Library pane. How can I add the library to my project?

推荐答案

一张图片值得一千字:

A picture is worth a thousand words:

这篇关于Android actionbar如何添加支持库v7 appcompat for Eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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