直接前往內容

最常造訪的網頁

最近瀏覽的網頁

navigation

Support Library Features Guide

The Support Libraries provide a wide range of classes for building apps, from fundamental app components, to user interface widgets, to media handling, to TV app components. Many of the classes are backward compatible implementations, but some of them are new features in their own right.

This document provides an overview of the important categories of features available in the support library, and specific classes you should know about when building your app.

For information about how to add support library code to your app development project, see Support Library Setup. For information on how to include specific support library packages in your project, see Support Library Packages.

App Components

These Support Library classes provide backward-compatible implementations of important, core platform features. These implementation typically extend earlier versions of the class to handle new methods and features added in more recent releases of the platform. Some of these classes are complete, static implementations of the framework APIs.

User Interface

These support library classes provide implementations of key user interface widgets and behaviors, and help you create more modern app interfaces on earlier devices. A few of these widgets are only available through the support library.

General-purpose layout containers

These support classes provide user interface containers that can be adapted for different design use cases.

Note: The ViewPager, RecyclerView, PercentFrameLayout and PercentRelativeLayout classes are only available from the Support Libraries.

Special-purpose layout containers

These support classes provide compatible implementations of specific layout patterns, such as drawer views that can be pulled from the edge of the screen, sliding panels, and nesting lists within lists.

Views, dialogs, and widgets

The support libraries provide a number of classes for displaying content and providing user interaction elements in a layout.

Material Design

The support libraries provide a number of classes for implementing Material Design user interface recommendations. Many of these classes are provided in the android.support.design package.

Graphics

The android.support.graphics.drawable package provides support for vector drawables. By using vector drawables, you can replace multiple PNG assets with a single vector graphic, defined in XML.

VectorDrawableCompat provides support for vector drawables on API level 9 and above. AnimatedVectorDrawableCompat provides support for animated vector drawables on API level 11 and above.

Accessibility

The android.support.v4.view.accessibility package provides compatibility classes for implementing accessibility features introduced in API level 14 and later, which allow accessibility services to observe and identify user interaction with items displayed on screen.

Media Playback

The Android Support Library provides a backport of the media router functionality to devices running versions of the platform earlier than Android 4.1 (API level 16). These classes allow control of media playback across connected Android devices:

TV Apps

The Android SDK provides libraries to support form factors such as large screens and their associated controllers. An app can depend on the appropriate support library to provide functionality across a wide range of platform versions, and can provide content on external screens, speakers, and other destination devices.

Wear Apps

The Android SDK provides libraries to support watches. These libraries provide functionality to apps that is available to users whenever they are wearing a watch.

Utilities

The Android Support Library offers a number of features that are not built into the framework. These libraries offer a range of utilities that apps can use.

本網站使用 Cookie 儲存你在此指定的語言和顯示選項偏好設定。

掌握有關 Android 開發人員的最新消息和實用訣竅,協助你製作最受歡迎的 Google Play 內容。

* 必填欄位

訂閱成功!

在 WeChat 上追蹤 Google Developers

你要以瀏覽這個網站嗎?

你要求以顯示這個網頁,但你為此網站指定的語言偏好設定為

是否要變更語言偏好設定並改用瀏覽網站?稍後如要變更語言偏好設定,請利用位在每個網頁最下方的語言選單來調整設定。

你的 API 層級必須達 以上才能存取這個級別

本說明文件已隱藏,因為你為該文件選取的 API 層級為 。使用左側導覽列上方的選取工具即可變更說明文件的 API 層級。

如需進一步瞭解如何為應用程式指定 API 層級的相關資訊,請參閱 Supporting Different Platform Versions (支援不同的平台版本) (英文)。

Take a short survey?
Help us improve the Android developer experience. (April 2018 — Developer Survey)