Support Library官方教程(1)概述

1.Support Library

  The Android Support Library package is a set of code libraries that provide backward-compatible versions of Android framework APIs as well as features that are only available through the library APIs. Each Support Library is backward-compatible to a specific Android API level. This design means that your applications can use the libraries' features and still be compatible with devices running Android 1.6 (API level 4) and up.

  This guide provides information about what features are enabled by the Support Libraries, how to use them in your development environment and information about library releases.

  Support Library package 是一系列向下兼容的 开发包。里面包含很多具有特性的api

2.Overview

  Including the Support Libraries in your Android project is considered a best practice for application developers, depending on the range of platform versions your app is targeting and the APIs that it uses. Using the features the libraries provide can help you improve the look of your application, increase performance and broaden the reach of your application to more users. If you use the Android code template tools, you will notice that all the Android application templates include one or more of the Support Libraries by default.

  在项目中使用support libary 是一个良好习惯,这些特性api 可以改善应用外观,性能,扩大用户群。注意 代码模板工具,创建的项目默认包含了相应的 support libary

  The Support Libraries each target a base Android API level and each provides a different set of features. In order to effectively use the libraries, it is important to consider what features you want to support and understand what features are supported by each library at what Android API level. To get started, review the Support Library Features guide. After that, go to the Support Library Setup topic to learn how to incorporate the Support Libraries into your application. For more details about Support Library APIs, see the android.support packages in the API reference.

  不同的 api level 中 support libary中的特性可能不同,使用时要知道当前api支持哪些特性。

3.Revisions(修订记录)

  This section provides details about the Support Library package releases.

Android Support Library, revision 23.1.1 (November 2015)

Changes for v7 recyclerview library:
  • Fixed a crash that occurs when you perform a swipe-to-dismiss action that the ItemTouchHelper utility class provides, and then add an item. (Issue 190500)
Changes for v7 preference library:
Changes for v17 Leanback Support library:
  • Fixed a number of internal issues in this library.
Changes for Design Support library:
  • Added the getHeaderView method to the NavigationView class.
  • Fixed a transparent background issue for a FloatingActionButton object on devices running Android 4.0 (API level 15) and lower. (Issue 183315)
posted @ 2016-01-08 15:56  f9q  阅读(297)  评论(0编辑  收藏  举报