You can download the Android Support Library package using the Android SDK

You can download the android support library package

This preview shows page 44 - 50 out of 55 pages.

You can download the Android Support Library package using the Android SDK Manager and then add it to the projects of your choice. It is an optional package and not linked by default. Android Support Library packages are versioned like everything else, and they are updated occasionally with new features and more important, bug fixes.
Image of page 44

Subscribe to view the full document.

Linking the Android Support Package to Your Project (Cont’d) There are actually seven Android Support Packages: v4, v7, v8, v13, v17, Annotation, and Design The v4 package aims to provide new classes introduced in Honeycomb and beyond to platform versions as far back as API Level 4 (Android 1.6). This is the package you want to use when supporting your legacy applications. The v7 package provides additional APIs that are not found within the v4 package and supports newer features all the way back to API Level 7 (Android 2.1). It is organized into the following groups: appcompat , cardview , gridlayout , mediarouter , palette , and recyclerview The v8 package provides the renderscript package to support RenderScript computation all the way back to API Level 8 (Android 2.2).
Image of page 45
Linking the Android Support Package to Your Project (Cont’d) The v13 package provides more efficient implementations of some items, such as the FragmentCompat , when running on API Level 13 and later. If you’re targeting API Level 13 or later, use this package instead. The v17 package provides widgets for building TV user interfaces, such as: BrowseFragment , DetailsFragment , PlaybackOverlayFragment , and SearchFragment The Annotation package allows you to add metadata annotations to your code. The Design package allows you to add material design patterns and user interface elements.
Image of page 46

Subscribe to view the full document.