Xavier Ducrohet | 62df672 | 2011-02-28 12:24:36 -0800 | [diff] [blame] | 1 | Compatibility Libraries for Android. |
| 2 | |
| 3 | This SDK component contains static libraries providing access to newer APIs |
| 4 | on older platforms. To use those libraries, simply copy them as static libraries |
| 5 | into your project. |
| 6 | |
Xavier Ducrohet | 80f8442 | 2011-06-06 17:39:44 -0700 | [diff] [blame] | 7 | Each library is called v<api>, indicating the minimum API level that they require. |
| 8 | |
| 9 | |
| 10 | *** V4 *** |
Xavier Ducrohet | 62df672 | 2011-02-28 12:24:36 -0800 | [diff] [blame] | 11 | |
| 12 | v4/android-support-v4.jar contains: |
| 13 | - Fragment API. New in API 11 (3.0 - Honeycomb). http://developer.android.com/reference/android/app/Fragment.html |
| 14 | - Loader API. New in API 11 (3.0 - Honeycomb). http://developer.android.com/reference/android/app/LoaderManager.html |
| 15 | - CursorAdapter / ResourceCursorAdapter / SimpleCursorAdapter. These are the API 11 versions. |
| 16 | - MenuCompat allows calling MenuItem.setShowAsAction which only exists on API 11. |
| 17 | |
| 18 | v4/src/ is the source code for the compatibility library |
Xavier Ducrohet | 80f8442 | 2011-06-06 17:39:44 -0700 | [diff] [blame] | 19 | v4/samples/ provides a sample app using the library. |
| 20 | |
| 21 | |
| 22 | *** V13 *** |
| 23 | |
| 24 | Provides the same features as v4, plus: |
| 25 | - FragmentPagerAdapter: Implementation of PagerAdapter that represents each page as a Fragment. |
| 26 | |
| 27 | v13/src/ is the source code for the compatibility library, not including the v4 source |
| 28 | v13/samples/ provides a sample app using the library. |