Android Support version related

Source: Internet
Author: User

1.android 5.0 introduced Material Design, low version compatible with support-v7 other updates please refer to the Android 5.0 API for new and improved

2. Android 6.0 introduced a new Material design package, design can be compatible to the 2.1 version, the introduction of run-time permission authorization, which is to say that some features in the installation is not a license is useless, only use the box to select the permissions can be, or will error.

    • Support-v4

Used on API Lever 4 (i.e. Android 1.6) or later. It contains relatively more content and is used more broadly, for example: Fragment,notificationcompat,loadbroadcastmanager,viewpager,pagetabatrip,loader, Fileprovider, etc.

    • Support-v7

This package was designed to consider API Level 7 (i.e. Android 2.1) and above, but V7 relies on V4 for this package, V7 supports action bar and some theme compatibility.

    • Hoho Theme

Before 4.0 Android can be said to be no design, after 4.0 launched the Android design, since then the Android has a great improvement, and in the program implementation of the corresponding is the holo style, so you see there are similar Theme.Holo.Light,Theme.Holo.Light.DarkActionBar is 4.0 design style, but in order to let 4.0 before the version can also have this style how to do? This time will have to quote V7 package, so corresponding to have Theme.AppCompat.Light,Theme.AppCompat.Light.DarkActionBar, If your program minimum supported version is 4.0, then you can not consider the compatibility of V7, so at present, I personally recommend not to consider compatibility.

    • Material Design Theme

Version 5.0, Android launched the concept of the material design, which is another big breakthrough in designing Android. corresponding to the implementation of the program has Theme.Material.Light, Theme.Material.Light.DarkActionBar and so on, But this style can only be used in the 5.0 version of the phone, if you apply material design before 5.0 how to do? The same reference APPCOMPAT-V7 package, this time of Theme.AppCompat.Light, Theme.AppCompat.Light.DarkActionBar is to correspond to compatible material design theme.

Gradle Reference APPCOMPAT-V7 Package when you do not need to reference V4, because V7 default contains V4 package;

compile ' com.android.support:appcompat-v7:21.0.3 ' The 21 in represents the Compatibility Pack for API level 21, so if you are referencing a version prior to 21, the default Theme.AppCompat.Light is Holo style, the version starting from 21 is material style by default

    • Support-v13

This package is designed for API level 13 (ie Android 3.2) and later, generally we are not used, tablet development can be used, here is not too much to introduce.

    • Design

With the help of the Android Design Support Library, we have brought some important material Design controls for all developers, all over 2.1 devices. You can find it in here .Navigation Drawer View,floating labels for input controls,Hover action Button,Snackbar,Options Taband the combination of these controls.gesture Scrolling frame coordinatorlayout,collapsingtoolbarlayout .

For details, please see http://www.jcodecraeer.com/a/anzhuokaifa/developer/2015/0531/2958.html




Android Support version related

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.