For more information about using these APIs in your application, see the RenderScript developer guide. This library adds support for the Fragment user interface pattern with the FragmentCompat class and additional fragment support classes. For more information about fragments, see the Fragments developer guide. Note: The v4 fragment library provides a Fragment class. The android. This package requires API level 17 or higher. The Gradle build script dependency identifier for this library is as follows:.
It provides a number of important widgets for TV apps. Some of the notable classes include:. The Annotation package provides APIs to support adding annotation metadata to your apps. The Design package provides APIs to support adding material design components and patterns to your apps. The Design Support library adds support for various material design components and patterns for app developers to build upon, such as navigation drawers, floating action buttons FAB , snackbars, and tabs.
This package requires API level 15 or higher. The Percent package provides APIs to support adding and managing percentage based dimensions in your app. Note: As of release Clients of this module should migrate to the new ConstraintLayout widget, which is provided as a separate artifact in SDK Manager. Exif tags store information such as the orientation, date and time, camera information, and the location directly in a JPEG or RAW file.
The App library adds support for annotations, such as ContentRecommendation. This package requires API level 21 or higher. This library has APIs for building user interfaces for Wear apps. The APIs, available in the android. Caution: When using classes from the Support Library, be certain you import the class from the appropriate package.
For example, when applying the ActionBar class:. Note: After including the Support Library in your application project, we strongly recommend that you shrink, obfuscate, and optimize your app for release. In addition to protecting your source code with obfuscation, shrinking removes unused classes from any libraries you include in your application, which keeps the download size of your application as small as possible. Further guidance for using some Support Library features is provided in the Android developer training classes , guides and samples.
For more information about the individual Support Library classes and methods, see the android. If you are increasing the backward compatibility of your existing application to an earlier version of the Android API with the Support Library, make sure to update your application's manifest.
The manifest setting tells Google Play that your application can be installed on devices with Android 4. If you are using Gradle build files, the minSdkVersion setting in the build file overrides the manifest settings. In this case, the build file setting tells Google Play that the default build variant of your application can be installed on devices with Android 4.
Some of the Support Library packages have package names to indicate the minimum level of the API they originally supported, using a v notation, such as the support-v4 package.
Starting with Support Library version For this reason, when working with any recent release of the support library, you should not assume that the the v package notation indicates a minimum API support level. This change in recent releases also means that library packages with the v4 and v7 are essentially equivalent in the minimum level of API they support.
For example, the support-v4 and the support-v7 package both support a minimum API level of 14, for releases of the Support Library from The release version of the Support Library, such as The release version number indicates which version of the platform API it was built against, and therefore, what the most recent APIs may be included in this version of the libraries. Specifically, the first section of the release version number, for example the 24 in version The release version level of the support library indicates it incorporates some features of that API level, but you should not assume it provides compatibility with all features released in the new platform API version.
Most libraries in the Android Support Library suite have some dependency on one or more libraries. For example, nearly all support libraries have a dependency on the support-compat package.
In general, you do not need to worry about support library dependencies, because the gradle build tool manages library dependencies for you, by automatically including dependent libraries. If you want to see what libraries and library dependencies are included in your app, run the following command at the build root of your app development project to get a report of the dependencies for that project, including Android Support Libraries and other libraries:.
For more information about adding support libraries to your development project using Gradle, see Support Library Setup. For more information about working with Gradle, see Configure Your Build. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Where can I download the source code of support library v7 of android?
Asked 8 years, 1 month ago. Active 6 years, 3 months ago. Viewed 17k times. Alex Chan Alex Chan 1, 3 3 gold badges 15 15 silver badges 31 31 bronze badges.
0コメント