development
修订版 | 80f844229137cb0d78689ea61aea37da4c770c8c (tree) |
---|---|
时间 | 2011-06-07 11:21:45 |
作者 | Xavier Ducrohet <xav@andr...> |
Commiter | Xavier Ducrohet |
Add v13 to the compatibility package.
Also remove ApiDemos from the package and instead
add each library-specific sample app to each v##
folder.
Change-Id: I2932bbb91c7122c122973902d1fcd159ca899381
@@ -75,3 +75,13 @@ $(android-support-v4_full_target): $(android-support-v4_build_module) | ||
75 | 75 | $(hide)$(ACP) $< $@ |
76 | 76 | |
77 | 77 | ALL_SDK_FILES += $(android-support-v4_full_target) |
78 | + | |
79 | +android-support-v13_build_module := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android-support-v13_intermediates/javalib.jar | |
80 | +android-support-v13_intermediates := $(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/android-support-v13_intermediates | |
81 | +android-support-v13_full_target := $(android-support-v13_intermediates)/android-support-v13.jar | |
82 | +$(android-support-v13_full_target): $(android-support-v13_build_module) | |
83 | + @echo Package android-support-v13.jar: $@ | |
84 | + $(hide)mkdir -p $(dir $@) | |
85 | + $(hide)$(ACP) $< $@ | |
86 | + | |
87 | +ALL_SDK_FILES += $(android-support-v13_full_target) |
@@ -154,7 +154,6 @@ development/samples/source.properties samples/${PLATFORM_NAME}/source.pro | ||
154 | 154 | development/samples/AccessibilityService samples/${PLATFORM_NAME}/AccessibilityService |
155 | 155 | development/samples/AccelerometerPlay samples/${PLATFORM_NAME}/AccelerometerPlay |
156 | 156 | development/samples/ApiDemos samples/${PLATFORM_NAME}/ApiDemos |
157 | -${OUT_DIR}/target/common/obj/PACKAGING/android-support-v4_intermediates/android-support-v4.jar samples/${PLATFORM_NAME}/ApiDemos/libs/android-support-v4.jar | |
158 | 157 | development/samples/BackupRestore samples/${PLATFORM_NAME}/BackupRestore |
159 | 158 | development/samples/BasicGLSurfaceView samples/${PLATFORM_NAME}/BasicGLSurfaceView |
160 | 159 | development/samples/BluetoothChat samples/${PLATFORM_NAME}/BluetoothChat |
@@ -210,4 +209,7 @@ development/sdk/compatibility_README.txt | ||
210 | 209 | sdk/files/sdk_files_NOTICE.txt extras/android/compatibility/NOTICE.txt |
211 | 210 | ${OUT_DIR}/target/common/obj/PACKAGING/android-support-v4_intermediates/android-support-v4.jar extras/android/compatibility/v4/android-support-v4.jar |
212 | 211 | frameworks/support/v4 extras/android/compatibility/v4/src |
213 | -development/samples/ApiDemos extras/android/compatibility/v4/samples/ApiDemos | |
212 | +development/samples/Support4Demos extras/android/compatibility/v4/samples/Support4Demos | |
213 | +${OUT_DIR}/target/common/obj/PACKAGING/android-support-v13_intermediates/android-support-v13.jar extras/android/compatibility/v13/android-support-v13.jar | |
214 | +frameworks/support/v13 extras/android/compatibility/v13/src | |
215 | +development/samples/Support13Demos extras/android/compatibility/v13/samples/Support13Demos |
@@ -4,7 +4,10 @@ This SDK component contains static libraries providing access to newer APIs | ||
4 | 4 | on older platforms. To use those libraries, simply copy them as static libraries |
5 | 5 | into your project. |
6 | 6 | |
7 | -"v4" provides support for using new APIs on Android API 4 (1.6 - Donut) and above. | |
7 | +Each library is called v<api>, indicating the minimum API level that they require. | |
8 | + | |
9 | + | |
10 | +*** V4 *** | |
8 | 11 | |
9 | 12 | v4/android-support-v4.jar contains: |
10 | 13 | - Fragment API. New in API 11 (3.0 - Honeycomb). http://developer.android.com/reference/android/app/Fragment.html |
@@ -13,4 +16,13 @@ v4/android-support-v4.jar contains: | ||
13 | 16 | - MenuCompat allows calling MenuItem.setShowAsAction which only exists on API 11. |
14 | 17 | |
15 | 18 | v4/src/ is the source code for the compatibility library |
16 | -v4/samples/ provides a version of ApiDemos using the library. | |
\ No newline at end of file | ||
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. |