Android的支持-V7-appcompat和Android支持-V4之间的区别 [英] Difference between android-support-v7-appcompat and android-support-v4

查看:375
本文介绍了Android的支持-V7-appcompat和Android支持-V4之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道的区别的 Android的支持 - v4.jar Android的支持-V7-appcompat.jar 。如果我想补充appcompat操作栏在我的应用程序,我需要同时添加的 Android的支持-V7-appcompat.jar Android的支持 - v4.jar 的或仅 Android的支持-V7-appcompat.jar 的。

I wanted to know the difference between android-support-v4.jar and android-support-v7-appcompat.jar. If I want to add appcompat Action Bar in my application do I need to add both android-support-v7-appcompat.jar and android-support-v4.jar or only android-support-v7-appcompat.jar.

此外,没有的 Android的支持 - v13.jar 的有appcompat?

Also, does android-support-v13.jar has appcompat?

推荐答案

下面是差

V4支持库

v4 Support Library

这个库被设计为与Android 1.6(API等级4)和较高的使用。它包括最大组API相比其他库,包括用于应用组件,用户界面​​功能,可达性,数据处理,网络连接功能,和编程公用事业支持。

V7库

v7 Libraries

有设计成与Android 2.1(API 7级)及以上使用的几个库。这些库提供特定的功能集,并可以包括在独立应用程序彼此。

V7 appcompat库

v7 appcompat library

这个库增加了对操作栏用户界面的设计模式。

注意:
这个库依赖于V4支持库。如果你正在使用Ant或者Eclipse,请确保您包括V4支持库,因为这个库的类路径的一部分。

Note:
This library depends on the v4 Support Library. If you are using Ant or Eclipse, make sure you include the v4 Support Library as part of this library's classpath.

所以,是的,你需要两个罐子,如果你想使用V7。

So yes you need both jars if you want to use v7.

了解更多关于支持库功能

更新为Android支持-v13.jar

Update for android-support-v13.jar

V13支持库

v13 Support Library

此库旨在供Android 3.2(API级别13)高。它增加了对与(FragmentCompat)班和额外片段支持类的片段用户界面模式支持

当你看到包详细信息它具有类<一个href="http://developer.android.com/reference/android/support/v13/app/FragmentCompat.html">FragmentCompat在给出的定义。因此,它不是所有类appcompat库。

When you see the package details it has a class FragmentCompat as given in definition. So it has not the all classes of appcompat library.

这篇关于Android的支持-V7-appcompat和Android支持-V4之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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