First, we need to understand, What is the Android Support Library?
The Android Support Library was originally released in 2011, You can say that as the Android Compatibility Library.the Android Support Library provides newer APIs for older releases.but the story is not enough.
this can be little confusing that support libraries with higher version numbers include the features from previous libraries (you might think v7-appcompat improves upon and includes all features from v4). In most cases, this is incorrect.but libraries themselves have a revision number. For example, “AppCompat v21” actually refers to support library v7-appcompat, revision 21.
The Android Support Library is not a single library but it can roughly be divided into two groups: compatibility and component libraries.
1-Compatibility Libraries focus on backporting features from newer framework releases so that devices running previous releases can take advantage of the newer APIs. The major compatibility libraries are v4 and v7-appcompat.
v4 library: It includes many features and, as its name suggests, supports back to API 4. In addition, to support implementations for major classes like Fragment and Loader (which were both introduced in the framework in API 11), you’ll also find several widely-used classes not present in the framework at all, such as ViewPager and DrawerLayout.
v7-appcompat: the v7-appcompat library provides support implementations for ActionBar (introduced in API 11) and Toolbar (introduced in API 21) for releases back to API 7. It requires the v4 library but does not include it. Thus, any feature dependent upon v7-appcompat is also dependent upon v4.
2-Component Libraries the Android Support Library also provides smaller, more modular component libraries that enable developers to add features that are otherwise not part of the standard framework. These self-contained libraries can be easily added or removed from a project without concern for dependencies. There are several valuable component libraries to consider:
v7-recyclerview: provides the RecyclerView component, which efficiently displays and animates large amounts of data and is designed to replace ListView
v7-cardview: provides the CardView component, enabling the cards UI design pattern
v7-gridlayout: provides the GridLayout class, which enables organizing UI elements into a rectangular grid. Etc..
Other Libraries The Android Support Library also contains a few other libraries that are used less often, but still worth mentioning:
v8: provides support for RenderScript (introduced in API 11) back to API 8
v13: provides additional compatibility support for the Fragment UI pattern and bundles the v4 librar
v17: provides support for building TV UIs
When should I use the Android Support Library?
You should use one of the support libraries when you need specific framework features that are newer than the minSdkVersion of your app or that are not available in the standard framework.
and I refer this tutorial