Android Support Library Introduction

Source: Internet
Author: User

V4 Support Library

This library is designed for Android 1.6 (API version 4) and above, and contains APIs that are not available in most high-level versions, including application components, user interface features, accessibility, data handling, network connectivity, and programming utilities, here is an introduction to some of the key APIs in V4: App Components
Fragment: It allows the same program to fit a different screen.
Notificationcompat: Support A richer form of notification;
Localbroadcastmanager: Used to send broadcast between different components within the same application.
    • Broadcast broadcasts will only be propagated within your app and will not be disclosed to other apps, ensuring that privacy data is not compromised
    • Other apps won't be able to send the broadcast to your app, so don't worry about other apps breaking it.
    • More efficient than system global broadcasts

User Interface:


Viewpager: A viewgroup that can manage sub-view, the user can switch between each view freely, this is used in many applications;
Pagertitlestrip: A non-interactive indicator of the current page, the previous page, and the next page. It is often used as a child control of the Viewpager control to be added in an XML layout file.
Pagertabstrip: An interactive indicator of the current page, the previous page, and the next page. It is often used as a child control of the Viewpager control to be added in an XML layout file.
Drawerlayout: Add a navigation drawer to create a pull-out from the edge of the window
Slidingpanelayout: Used to implement two-column panel switching, the use of the top-level UI provides a horizontal, multi-panel layout. The left panel can be viewed as a table of contents or a browse, and the task on the right panel is to display detailed content.

Accessibility:


Explorebytouchhelper: Help class that helps customize the view implementation accessibility;
Accessibilityeventcompat, Accessibilitynodeinfocompat, Accessibilitynodeprovidercompat, Accessibilitydelegatecompat:accessibility of the adaptation class

Content:


Loader: Added support for asynchronous loading of data, which also provides a concrete implementation of the class, including Cursorloader and Asynctaskloader classes;
Fileprovider: Private file sharing between apps. After you download the Android support library, the library is placed in the <sdk>/extras/android/support/v4/directory. The library's Gradle build script relies on the following identifiers:
com.android.support:support-v4:18.0.+

This dependency symbol specifies that the release version is 18.0.0 or higher.

Multidex Support Library

The support package is used to compile the app using multi-DEX technology and requires a multidex configuration when more than 65,536 methods are used

After you download the Android support library, the library is placed in the <sdk>/extras/android/support/multidex/directory. The library's Gradle build script relies on the following identifiers:

com.android.support:multidex:1.0.0

V7 Support Libraries
For Android 2.1 (API level 7) and above, Google offers a range of support packages, each of which corresponds to a specific feature, each of which can be referenced individually. V7 AppCompat Library

This library adds support for the Action Bar user interface design pattern. This library includes a user interface implementation that supports material design.

Note: This library relies on the V4 support library.

Here are some of the key classes contained in the V7 AppCompat library:

ActionBar: Provides an implementation of the ActionBar user interface pattern

Appcompatactivity: Adds an activity class that can be used as the base class for activity that supports Actionbar implementations.

Appcompatdialog: Adds a dialog class that can be used as a AppCompat Theme dialog box base class.

Shareactionprovider: Add a standardized shared action (such as email or send to a social networking site) that is included in the Actionbar.

After you download the Android support library, the library is placed in the <sdk>/extras/android/support/v7/appcompat/directory. The library's Gradle build script relies on the following identifiers:

com.android.support:appcompat-v7:21.0.0

V7 CardView Library

This library adds support for CardView widgets.

After you download the Android support library, the library is placed in the <sdk>/extras/android/support/v7/cardview/directory. The library's Gradle build script relies on the following identifiers:

com.android.support:cardview-v7:21.0.0

V7 GridLayout Library

This library adds support for the GridLayout class, which allows you to use the grid of rectangular elements to arrange user interface elements.

After you download the Android support library, the library is placed in the <sdk>/extras/android/support/v7/gridlayout/directory. The library's Gradle build script relies on the following identifiers:

com.android.support:gridlayout-v7:21.0.0

V7 Mediarouter Library

This library provides mediarouter, Mediarouteprovider and related media classes to support Google Cast.

After you download the Android support library, the library is placed in the <sdk>/extras/android/support/v7/mediarouter/directory. The library's Gradle build script relies on the following identifiers:

com.android.support:mediarouter-v7:21.0.0

v7 Palette Library

This library adds support for the Palette class, which allows you to extract prominent colors from an image.

After you download the Android support library, the library is placed in the <sdk>/extras/android/support/v7/palette/directory. The library's Gradle build script relies on the following identifiers:

com.android.support:palette-v7:21.0.0

V7 Recyclerview Library

This library adds support for the Recyclerview class, which provides support for the Recyclerview widget.

After you download the Android support library, the library is placed in the <sdk>/extras/android/support/v7/recyclerview/directory. The library's Gradle build script relies on the following identifiers:

com.android.support:recyclerview-v7:21.0.0

V8 Support Library

This library is designed for use with Android 2.2 (API level 8) or later.

V8 Renderscript Library

Added support for the Renderscript computing architecture.

V13 Support Library

The main purpose of this package is to provide more Framgnet feature support for Android3.2 (API level 13) and above, and the reason for using it is that Android-support-v4.jar Although also to Fragment support, because to be compatible with the lower version, resulting in his own implementation of the Fragment effect, some features in the high version of Fragment lost, and for V13 above the SDK version, We can use more efficient, more feature-specific code.

It adds support for fragment user interface styles (leveraging the Fragmentcompat Class) and additional fragment support classes.

After you download the Android support library, the library is placed in the <sdk>/extras/android/support/v13/directory. The library's Gradle build script relies on the following identifiers:

com.android.support:support-v13:18.0.0

V17 Leanback Library

The Android.support.v17.leanback package provides support for the user interface of the TV device. It provides some important widgets for the TV application.

After you download the Android support library, the library is placed in the <sdk>/extras/android/support/v17/leanback directory. The library's Gradle build script relies on the following identifiers:

com.android.support:leanback-v17:21.0.0

Annotations Support Library

A support package that supports annotations.

After you download the Android support library, the library is placed in the <sdk>/extras/android/support/annotations directory. The library's Gradle build script relies on the following identifiers:

com.android.support:support-annotations:22.0.0

Design Support Library

A support package that supports material design.

Android Support Library Introduction

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.