[Android Pro] What exactly is in the Android support pack?

Source: Internet
Author: User

Reference to:http://www.2cto.com/kf/201411/350928.html

With the release of Android 5.0 Lollipop, Android has provided us with more support packages, but I'm sure most of the developers are just as unaware of what is in these packages as I did before, and when we should use it. Now, let's take a look at what's in each version of the support package, so that you don't get confused when you use it.

First, you need to understand what each support package version suffix VX represents. Of course, I believe everyone who comes to the blog must know that Android has a version number for each version, for example, 2.1 is 7,4.0 14,5.0 is 21. And here, the number after V represents the lowest version level that he is able to use, and the reason why it cannot be used in a lower version is because as the version is upgraded, there are many features or APIs that were not previously supported in the new version, so if you use these support packages in older versions, it can cause the app to crash.

Now, we start from the beginning by browsing through the support packages that are currently supported:

(1) support-v4

The SUPPORT-V4 package is the lowest level of Android support package. The so-called V4, represents its minimum support Android1.6 (API Level4), this version is a really more mature version of the Android, not to mention now we write applications generally only the lowest support to the Android 2.x system, for 1.x System has been completely abandoned, so you can already use it as the most basic system component.

In the SUPPORT-V4 package, it has a lot of classes, mainly including support for application components, user interaction experience, some tool classes, some data network tools, face reading we will look at it in detail some of the specific classes.

1. System Components Section

Fragment: In fact Fragment until Android3.0 formally into the Android framework system, but Android for the low version of compatibility, so he helped us in the lower version also adapted to the Fragment framework

Notificationcompat: This is some adaptation of the notification bar to help you display richer information in the lower version of the notification bar

Localbroadcastmanager: This is for local broadcast notifications, and you should use it when you want to send notifications that are only received by the app

2. User Interface Interaction Section

Viewpager, believe me, I don't have to say that, he's mainly used to help us with the sliding interaction between interfaces.

Pagertitlestrip,pagertabstrip These two are Viewpager help class bar, their role is to do Tab bar switch auxiliary display

Drawerlayout, mainly used for sliding bar implementation

Slidingpanelayout, this class is also used for the implementation of the slide bar, and drawerlayout, unlike the drawerlayout, the default is to cover the current page, and Slidingpanelayout The current page will be moved.

3. Help classes accessed by accessbility

Explorebytouchhelper, a tool class to help customize the View implementation accessibility

Accessbilityeventcompat, Accessbilitynodeinfocompat, Accessbilitynodeprovidercompat, AccessbilityDelegateCompat, These are all classes used for accessibility function adaptation

4. Data Access Helper Classes

Loader, primarily for loading data asynchronously

Fileprovider, provides file sharing between apps

(2) Support-v7

1.Appcompat

The main purpose of this package is to be introduced in the low version of Android's holo style interface, similar to an open source project called Sherlockactionbar

2.CardView

The card layout was a new package that was introduced recently when Android5.0 was released, and in my opinion, his main effect was to have the app carry the card display

3.GridLayout

Grid layout can help you arrange the entire layout in a grid of two squares

4.MediaRouter

This layout is mainly used to support the googlecast, mainly for the inter-device audio, video exchange display

5.Palette

This package is also the latest, his role is to help Android to achieve his materialdesign, so that your Actionbar can be based on the interface to make the corresponding color changes

7.RecyclerView

This package is also just out of the way, his role is to replace the ListView and the GridView, but unfortunately is not implemented Onitemclick these interfaces, you need to handle it yourself

(3) Support-v8

There is actually only one lattice feature in Support-v8 that is used to render the script

(4) Support-v13

The purpose of this package is to provide more framgnet feature support for systems above the Android3.2 level, and the reason for using it is that the ANDROID-SUPPORT-V4 package also supports Fragment, because it is compatible with the lower version, which leads to his own implementation. Fragment effects, some of the features in the higher version of Fragment are missing, and for the SDK versions above V13, we can use more efficient, more feature-specific code

(5) Support-v17

The main function of this package is to support TV devices, and to provide many components for TV equipment

For example, the following:

Browsefragment, Detailfragment, Playbasckoverlayfragment, searchfragment

But forgive me for not having done Android TV development, I do not know what their use is, if you really want to view, please go to the official website to see it

[Android Pro] What exactly is in the Android support pack?

Related Article

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.