支持库与Appcompat支持库之间的区别 [英] Difference between support and appcompat support libraries
问题描述
我看到一些例子 编译'com.android.support:appcompat-v7:21.0.3'
I see some examples use compile 'com.android.support:appcompat-v7:21.0.3'
和一些节目: 编译'com.android.support:support-v7:21.0.3'
and some show: compile 'com.android.support:support-v7:21.0.3'
这两个库有什么区别?
推荐答案
v4支持库
该库旨在与Android 1.6(API级别4)及更高版本一起使用.与其他库相比,它包含最大的API集,包括对应用程序组件,用户界面功能,可访问性,数据处理,网络连接和编程实用程序的支持.
This library is designed to be used with Android 1.6 (API level 4) and higher. It includes the largest set of APIs compared to the other libraries, including support for application components, user interface features, accessibility, data handling, network connectivity, and programming utilities.
v7 appcompat库
此库添加了对操作栏用户界面设计模式的支持.该库包括对材料设计用户界面实现的支持.
This library adds support for the Action Bar user interface design pattern. This library includes support for material design user interface implementations.
注意:此库取决于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.
来源: https://developer.android.com/tools/support -library/features.html
这篇关于支持库与Appcompat支持库之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!