http://developer.android.com/sdk/compatibility-library.html


SDK Manager中下载 Extras/Android Support package

下载玩后在android-sdk-windows\extras\android\support目录

使用时将android-support-v4.jar导入项目,可以在低版本SDK中支持Fragment API


介绍:

Support Libraries for Android.


This SDK component contains static libraries providing access to newer APIs
on older platforms and various helper classes.


To use those libraries, simply copy them as static libraries into your project.


Each library is called v<api>, indicating the minimum API level that they require.




*** V4 ***


v4/android-support-v4.jar contains:
- Fragment API. New in API 11 (3.0 - Honeycomb). http://developer.android.com/reference/android/app/Fragment.html
- Loader API. New in API 11 (3.0 - Honeycomb). http://developer.android.com/reference/android/app/LoaderManager.html
- CursorAdapter / ResourceCursorAdapter / SimpleCursorAdapter. These are the API 11 versions.
- MenuCompat allows calling MenuItem.setShowAsAction which only exists on API 11.


v4/src/ is the source code for the compatibility library
v4/samples/ provides a sample app using the library.




*** V13 ***


v13/android-support-v13.jar provides the same features as v4, plus:
- FragmentPagerAdapter: Implementation of PagerAdapter that represents each page as a Fragment.


v13/src/ is the source code for the compatibility library, not including the v4 source
v13/samples/ provides a sample app using the library.

更多相关文章

  1. Android(安卓)requires compiler compliance level 5.0 or 6.0.
  2. Android下载文本文件和mp3文件
  3. Android(安卓)Gradle Plugin指南(三)——依赖关系、android库和多
  4. Android(安卓)requires compiler compliance level 5.0 or 6.0.
  5. Android(安卓)Gradle Plugin指南(三)——依赖关系、android库和多
  6. Android(安卓)Studio 中编译JDK 版本配置
  7. Android(安卓)获取imei号码,获取手机型号和系统版本号等信息
  8. Android(安卓)API Level对应Android版本一览表(10.0)
  9. Linux下Android开发平台的搭建

随机推荐

  1. 学习路线汇总
  2. java中的日志框架梳理(以故事的形式呈现)
  3. 为什么我选用了springcloud而不是dubbo
  4. Tomcat+Servlet面试题都在这里
  5. mysql从入门到优化(3)事务的基本操作
  6. 可重入读写锁ReentrantReadWriteLock的使
  7. SVG基础知识
  8. 大白话讲述分布式系统中的CAP理论
  9. 一个古老而又经典的算法-汉诺塔问题
  10. mysql从入门到优化(1)基本操作上