From 2c8ead32c7ebf08db568e2e9d5dbb3738ac69797 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Queru Date: Thu, 12 Nov 2009 18:45:17 -0800 Subject: eclair snapshot --- samples/ApiDemos/AndroidManifest.xml | 34 +- samples/ApiDemos/default.properties | 11 - samples/ApiDemos/res/anim/fade.xml | 3 +- samples/ApiDemos/res/anim/hold.xml | 20 + samples/ApiDemos/res/anim/slide_left.xml | 3 +- samples/ApiDemos/res/anim/slide_right.xml | 3 +- samples/ApiDemos/res/anim/zoom_enter.xml | 28 ++ samples/ApiDemos/res/anim/zoom_exit.xml | 33 ++ .../res/drawable-hdpi/alert_dialog_icon.png | Bin 0 -> 1321 bytes .../ApiDemos/res/drawable-hdpi/app_sample_code.png | Bin 0 -> 3608 bytes .../res/drawable-hdpi/arrow_down_float.png | Bin 0 -> 1147 bytes .../ApiDemos/res/drawable-hdpi/arrow_up_float.png | Bin 0 -> 1134 bytes .../ApiDemos/res/drawable-hdpi/btn_check_off.png | Bin 0 -> 1680 bytes .../ApiDemos/res/drawable-hdpi/btn_check_on.png | Bin 0 -> 2116 bytes .../res/drawable-hdpi/btn_circle_normal.png | Bin 0 -> 1960 bytes .../res/drawable-hdpi/btn_default_normal.9.png | Bin 0 -> 1081 bytes samples/ApiDemos/res/drawable-hdpi/button.9.png | Bin 0 -> 1058 bytes .../res/drawable-hdpi/ic_popup_reminder.png | Bin 0 -> 1596 bytes samples/ApiDemos/res/drawable-hdpi/icon48x48_2.png | Bin 0 -> 6460 bytes .../drawable-hdpi/progress_circular_background.png | Bin 0 -> 1570 bytes .../res/drawable-hdpi/progress_particle.png | Bin 0 -> 634 bytes samples/ApiDemos/res/drawable-hdpi/robot.png | Bin 0 -> 2238 bytes .../res/drawable-hdpi/scrollbar_state2.png | Bin 0 -> 495 bytes samples/ApiDemos/res/drawable-hdpi/star_big_on.png | Bin 0 -> 2958 bytes samples/ApiDemos/res/drawable-hdpi/stat_happy.png | Bin 0 -> 634 bytes .../ApiDemos/res/drawable-hdpi/stat_neutral.png | Bin 0 -> 604 bytes samples/ApiDemos/res/drawable-hdpi/stat_sad.png | Bin 0 -> 660 bytes samples/ApiDemos/res/drawable-hdpi/stat_sample.png | Bin 0 -> 364 bytes .../res/drawable-mdpi/alert_dialog_icon.png | Bin 0 -> 3645 bytes .../ApiDemos/res/drawable-mdpi/app_sample_code.png | Bin 0 -> 5198 bytes .../res/drawable-mdpi/arrow_down_float.png | Bin 0 -> 686 bytes .../ApiDemos/res/drawable-mdpi/arrow_up_float.png | Bin 0 -> 683 bytes .../ApiDemos/res/drawable-mdpi/btn_check_off.png | Bin 0 -> 1172 bytes .../ApiDemos/res/drawable-mdpi/btn_check_on.png | Bin 0 -> 1390 bytes .../res/drawable-mdpi/btn_circle_normal.png | Bin 0 -> 1249 bytes .../res/drawable-mdpi/btn_default_normal.9.png | Bin 0 -> 763 bytes samples/ApiDemos/res/drawable-mdpi/button.9.png | Bin 0 -> 3376 bytes .../res/drawable-mdpi/ic_popup_reminder.png | Bin 0 -> 3776 bytes samples/ApiDemos/res/drawable-mdpi/icon48x48_2.png | Bin 0 -> 2696 bytes .../drawable-mdpi/progress_circular_background.png | Bin 0 -> 2044 bytes .../res/drawable-mdpi/progress_particle.png | Bin 0 -> 3058 bytes samples/ApiDemos/res/drawable-mdpi/robot.png | Bin 0 -> 5634 bytes .../res/drawable-mdpi/scrollbar_state2.png | Bin 0 -> 1326 bytes samples/ApiDemos/res/drawable-mdpi/star_big_on.png | Bin 0 -> 1776 bytes samples/ApiDemos/res/drawable-mdpi/stat_happy.png | Bin 0 -> 1157 bytes .../ApiDemos/res/drawable-mdpi/stat_neutral.png | Bin 0 -> 1148 bytes samples/ApiDemos/res/drawable-mdpi/stat_sad.png | Bin 0 -> 1157 bytes samples/ApiDemos/res/drawable-mdpi/stat_sample.png | Bin 0 -> 1089 bytes .../ApiDemos/res/drawable/alert_dialog_icon.png | Bin 3645 -> 0 bytes samples/ApiDemos/res/drawable/app_sample_code.png | Bin 5198 -> 0 bytes samples/ApiDemos/res/drawable/arrow_down_float.png | Bin 686 -> 0 bytes samples/ApiDemos/res/drawable/arrow_up_float.png | Bin 683 -> 0 bytes samples/ApiDemos/res/drawable/button.9.png | Bin 3376 -> 0 bytes .../ApiDemos/res/drawable/ic_popup_reminder.png | Bin 3776 -> 0 bytes samples/ApiDemos/res/drawable/icon48x48_2.png | Bin 2696 -> 0 bytes .../res/drawable/progress_circular_background.png | Bin 2044 -> 0 bytes .../ApiDemos/res/drawable/progress_particle.png | Bin 3058 -> 0 bytes samples/ApiDemos/res/drawable/robot.png | Bin 5634 -> 0 bytes samples/ApiDemos/res/drawable/scrollbar_state2.png | Bin 1326 -> 0 bytes samples/ApiDemos/res/drawable/star_big_on.png | Bin 1776 -> 0 bytes samples/ApiDemos/res/drawable/stat_happy.png | Bin 1157 -> 0 bytes samples/ApiDemos/res/drawable/stat_neutral.png | Bin 1148 -> 0 bytes samples/ApiDemos/res/drawable/stat_sad.png | Bin 1157 -> 0 bytes samples/ApiDemos/res/drawable/stat_sample.png | Bin 1089 -> 0 bytes samples/ApiDemos/res/layout/activity_animation.xml | 42 ++ .../layout/service_start_arguments_controller.xml | 10 + samples/ApiDemos/res/values/strings.xml | 29 +- samples/ApiDemos/res/values/styles.xml | 9 +- .../com/example/android/apis/app/Animation.java | 78 ++++ .../com/example/android/apis/app/LocalService.java | 9 + .../android/apis/app/ServiceStartArguments.java | 81 +++- .../apis/app/ServiceStartArgumentsController.java | 34 +- .../android/apis/app/WallpaperActivity.java | 49 +++ .../android/apis/graphics/ColorFilters.java | 184 +++++++++ .../android/apis/graphics/CubeRenderer.java | 23 -- .../android/apis/graphics/TouchRotateActivity.java | 10 - .../graphics/spritetext/SpriteTextRenderer.java | 10 - samples/ApiDemos/tests/build.properties | 1 + samples/BrowserPlugin/Android.mk | 36 ++ samples/BrowserPlugin/AndroidManifest.xml | 35 ++ samples/BrowserPlugin/MODULE_LICENSE_APACHE2 | 0 samples/BrowserPlugin/NOTICE | 190 +++++++++ samples/BrowserPlugin/README | 173 +++++++++ samples/BrowserPlugin/jni/Android.mk | 64 ++++ samples/BrowserPlugin/jni/PluginObject.cpp | 177 +++++++++ samples/BrowserPlugin/jni/PluginObject.h | 85 +++++ .../jni/animation/AnimationPlugin.cpp | 197 ++++++++++ .../BrowserPlugin/jni/animation/AnimationPlugin.h | 52 +++ samples/BrowserPlugin/jni/audio/AudioPlugin.cpp | 382 +++++++++++++++++++ samples/BrowserPlugin/jni/audio/AudioPlugin.h | 74 ++++ .../jni/background/BackgroundPlugin.cpp | 423 +++++++++++++++++++++ .../jni/background/BackgroundPlugin.h | 69 ++++ samples/BrowserPlugin/jni/form/FormPlugin.cpp | 381 +++++++++++++++++++ samples/BrowserPlugin/jni/form/FormPlugin.h | 72 ++++ samples/BrowserPlugin/jni/hello-jni.cpp | 48 +++ samples/BrowserPlugin/jni/jni-bridge.cpp | 85 +++++ samples/BrowserPlugin/jni/main.cpp | 412 ++++++++++++++++++++ samples/BrowserPlugin/jni/main.h | 32 ++ samples/BrowserPlugin/jni/paint/PaintPlugin.cpp | 388 +++++++++++++++++++ samples/BrowserPlugin/jni/paint/PaintPlugin.h | 76 ++++ .../res/drawable-hdpi/sample_browser_plugin.png | Bin 0 -> 5916 bytes .../res/drawable-mdpi/sample_browser_plugin.png | Bin 0 -> 3610 bytes samples/BrowserPlugin/res/values/strings.xml | 19 + .../src/com/android/sampleplugin/SamplePlugin.java | 15 + .../com/android/sampleplugin/SamplePluginStub.java | 118 ++++++ .../com/android/sampleplugin/graphics/Cube.java | 100 +++++ .../sampleplugin/graphics/CubeRenderer.java | 109 ++++++ samples/BusinessCard/Android.mk | 13 + samples/BusinessCard/AndroidManifest.xml | 33 ++ samples/BusinessCard/res/layout/business_card.xml | 27 ++ samples/BusinessCard/res/values/strings.xml | 24 ++ .../android/businesscard/BusinessCardActivity.java | 125 ++++++ .../android/businesscard/ContactAccessor.java | 89 +++++ .../businesscard/ContactAccessorSdk3_4.java | 81 ++++ .../android/businesscard/ContactAccessorSdk5.java | 88 +++++ .../example/android/businesscard/ContactInfo.java | 42 ++ samples/CubeLiveWallpaper/Android.mk | 27 ++ samples/CubeLiveWallpaper/AndroidManifest.xml | 66 ++++ samples/CubeLiveWallpaper/MODULE_LICENSE_APACHE2 | 0 samples/CubeLiveWallpaper/NOTICE | 190 +++++++++ .../res/drawable/ic_launcher_wallpaper.png | Bin 0 -> 3040 bytes samples/CubeLiveWallpaper/res/raw/cube.rs | 50 +++ samples/CubeLiveWallpaper/res/values/shapes.xml | 121 ++++++ samples/CubeLiveWallpaper/res/values/strings.xml | 38 ++ samples/CubeLiveWallpaper/res/xml/cube1.xml | 23 ++ samples/CubeLiveWallpaper/res/xml/cube2.xml | 24 ++ .../CubeLiveWallpaper/res/xml/cube2_settings.xml | 28 ++ samples/CubeLiveWallpaper/res/xml/cube3.xml | 23 ++ .../android/livecubes/cube1/CubeWallpaper1.java | 241 ++++++++++++ .../android/livecubes/cube2/CubeWallpaper2.java | 297 +++++++++++++++ .../livecubes/cube2/CubeWallpaper2Settings.java | 54 +++ .../src/com/android/livecubes/cube3/Cube3RS.java | 242 ++++++++++++ .../android/livecubes/cube3/CubeWallpaper3.java | 28 ++ .../android/livecubes/cube3/RenderScriptScene.java | 86 +++++ .../livecubes/cube3/RenderScriptWallpaper.java | 107 ++++++ samples/FixedGridLayout/Android.mk | 12 + samples/FixedGridLayout/AndroidManifest.xml | 15 + .../FixedGridLayout/res/drawable-hdpi/bugdroid.png | Bin 0 -> 4812 bytes .../FixedGridLayout/res/drawable-mdpi/bugdroid.png | Bin 0 -> 3019 bytes samples/FixedGridLayout/res/layout/main.xml | 42 ++ samples/FixedGridLayout/res/values/attrs.xml | 7 + samples/FixedGridLayout/res/values/strings.xml | 4 + .../android/fixedgridlayout/FixedGridLayout.java | 119 ++++++ .../fixedgridlayout/FixedGridLayoutTest.java | 19 + .../res/drawable-hdpi/app_global_time.png | Bin 0 -> 6943 bytes .../res/drawable-mdpi/app_global_time.png | Bin 0 -> 3693 bytes .../GlobalTime/res/drawable/app_global_time.png | Bin 3693 -> 0 bytes samples/HelloActivity/tests/build.properties | 1 + .../all_applications_label_background.9.png | Bin 0 -> 178 bytes .../res/drawable-hdpi/application_background.9.png | Bin 0 -> 596 bytes .../application_background_static.png | Bin 0 -> 508 bytes .../focused_application_background_static.png | Bin 0 -> 2219 bytes .../res/drawable-hdpi/hide_all_applications.png | Bin 0 -> 5366 bytes .../Home/res/drawable-hdpi/ic_launcher_allhide.png | Bin 0 -> 4219 bytes .../Home/res/drawable-hdpi/ic_launcher_allshow.png | Bin 0 -> 4235 bytes .../Home/res/drawable-hdpi/ic_launcher_home.png | Bin 0 -> 6460 bytes .../pressed_application_background_static.png | Bin 0 -> 2528 bytes .../res/drawable-hdpi/show_all_applications.png | Bin 0 -> 5889 bytes .../all_applications_label_background.9.png | Bin 0 -> 2833 bytes .../res/drawable-mdpi/application_background.9.png | Bin 0 -> 3083 bytes .../application_background_static.png | Bin 0 -> 3029 bytes .../focused_application_background_static.png | Bin 0 -> 3792 bytes .../res/drawable-mdpi/hide_all_applications.png | Bin 0 -> 6577 bytes .../Home/res/drawable-mdpi/ic_launcher_allhide.png | Bin 0 -> 5343 bytes .../Home/res/drawable-mdpi/ic_launcher_allshow.png | Bin 0 -> 5208 bytes .../Home/res/drawable-mdpi/ic_launcher_home.png | Bin 0 -> 2696 bytes .../pressed_application_background_static.png | Bin 0 -> 4560 bytes .../res/drawable-mdpi/show_all_applications.png | Bin 0 -> 6700 bytes .../all_applications_label_background.9.png | Bin 2833 -> 0 bytes .../Home/res/drawable/application_background.9.png | Bin 3083 -> 0 bytes .../res/drawable/application_background_static.png | Bin 3029 -> 0 bytes .../focused_application_background_static.png | Bin 3792 -> 0 bytes .../Home/res/drawable/hide_all_applications.png | Bin 6577 -> 0 bytes samples/Home/res/drawable/ic_launcher_allhide.png | Bin 5343 -> 0 bytes samples/Home/res/drawable/ic_launcher_allshow.png | Bin 5208 -> 0 bytes samples/Home/res/drawable/ic_launcher_home.png | Bin 2696 -> 0 bytes .../pressed_application_background_static.png | Bin 4560 -> 0 bytes .../Home/res/drawable/show_all_applications.png | Bin 6700 -> 0 bytes .../Home/src/com/example/android/home/Home.java | 30 +- .../src/com/example/android/jetboy/JetBoy.java | 19 +- samples/LunarLander/tests/build.properties | 1 + samples/NotePad/res/drawable-hdpi/app_notes.png | Bin 0 -> 4881 bytes samples/NotePad/res/drawable-mdpi/app_notes.png | Bin 0 -> 2879 bytes samples/NotePad/res/drawable/app_notes.png | Bin 2879 -> 0 bytes samples/NotePad/tests/build.properties | 1 + .../android/searchabledict/DictionaryProvider.java | 9 +- samples/SkeletonApp/tests/build.properties | 1 + samples/Snake/tests/build.properties | 1 + .../res/drawable-hdpi/sym_keyboard_delete.png | Bin 0 -> 885 bytes .../res/drawable-hdpi/sym_keyboard_done.png | Bin 0 -> 1593 bytes .../res/drawable-hdpi/sym_keyboard_return.png | Bin 0 -> 536 bytes .../res/drawable-hdpi/sym_keyboard_search.png | Bin 0 -> 1623 bytes .../res/drawable-hdpi/sym_keyboard_shift.png | Bin 0 -> 1247 bytes .../res/drawable-hdpi/sym_keyboard_space.png | Bin 0 -> 859 bytes .../res/drawable-mdpi/sym_keyboard_delete.png | Bin 0 -> 465 bytes .../res/drawable-mdpi/sym_keyboard_done.png | Bin 0 -> 771 bytes .../res/drawable-mdpi/sym_keyboard_return.png | Bin 0 -> 337 bytes .../res/drawable-mdpi/sym_keyboard_search.png | Bin 0 -> 1029 bytes .../res/drawable-mdpi/sym_keyboard_shift.png | Bin 0 -> 1029 bytes .../res/drawable-mdpi/sym_keyboard_space.png | Bin 0 -> 436 bytes .../res/drawable/sym_keyboard_delete.png | Bin 465 -> 0 bytes .../res/drawable/sym_keyboard_done.png | Bin 771 -> 0 bytes .../res/drawable/sym_keyboard_return.png | Bin 337 -> 0 bytes .../res/drawable/sym_keyboard_search.png | Bin 1029 -> 0 bytes .../res/drawable/sym_keyboard_shift.png | Bin 1029 -> 0 bytes .../res/drawable/sym_keyboard_space.png | Bin 436 -> 0 bytes 206 files changed, 6856 insertions(+), 108 deletions(-) delete mode 100644 samples/ApiDemos/default.properties create mode 100644 samples/ApiDemos/res/anim/hold.xml create mode 100644 samples/ApiDemos/res/anim/zoom_enter.xml create mode 100644 samples/ApiDemos/res/anim/zoom_exit.xml create mode 100755 samples/ApiDemos/res/drawable-hdpi/alert_dialog_icon.png create mode 100755 samples/ApiDemos/res/drawable-hdpi/app_sample_code.png create mode 100755 samples/ApiDemos/res/drawable-hdpi/arrow_down_float.png create mode 100755 samples/ApiDemos/res/drawable-hdpi/arrow_up_float.png create mode 100755 samples/ApiDemos/res/drawable-hdpi/btn_check_off.png create mode 100755 samples/ApiDemos/res/drawable-hdpi/btn_check_on.png create mode 100755 samples/ApiDemos/res/drawable-hdpi/btn_circle_normal.png create mode 100755 samples/ApiDemos/res/drawable-hdpi/btn_default_normal.9.png create mode 100755 samples/ApiDemos/res/drawable-hdpi/button.9.png create mode 100755 samples/ApiDemos/res/drawable-hdpi/ic_popup_reminder.png create mode 100755 samples/ApiDemos/res/drawable-hdpi/icon48x48_2.png create mode 100755 samples/ApiDemos/res/drawable-hdpi/progress_circular_background.png create mode 100755 samples/ApiDemos/res/drawable-hdpi/progress_particle.png create mode 100755 samples/ApiDemos/res/drawable-hdpi/robot.png create mode 100755 samples/ApiDemos/res/drawable-hdpi/scrollbar_state2.png create mode 100755 samples/ApiDemos/res/drawable-hdpi/star_big_on.png create mode 100755 samples/ApiDemos/res/drawable-hdpi/stat_happy.png create mode 100755 samples/ApiDemos/res/drawable-hdpi/stat_neutral.png create mode 100755 samples/ApiDemos/res/drawable-hdpi/stat_sad.png create mode 100755 samples/ApiDemos/res/drawable-hdpi/stat_sample.png create mode 100644 samples/ApiDemos/res/drawable-mdpi/alert_dialog_icon.png create mode 100644 samples/ApiDemos/res/drawable-mdpi/app_sample_code.png create mode 100644 samples/ApiDemos/res/drawable-mdpi/arrow_down_float.png create mode 100644 samples/ApiDemos/res/drawable-mdpi/arrow_up_float.png create mode 100644 samples/ApiDemos/res/drawable-mdpi/btn_check_off.png create mode 100644 samples/ApiDemos/res/drawable-mdpi/btn_check_on.png create mode 100644 samples/ApiDemos/res/drawable-mdpi/btn_circle_normal.png create mode 100644 samples/ApiDemos/res/drawable-mdpi/btn_default_normal.9.png create mode 100644 samples/ApiDemos/res/drawable-mdpi/button.9.png create mode 100755 samples/ApiDemos/res/drawable-mdpi/ic_popup_reminder.png create mode 100755 samples/ApiDemos/res/drawable-mdpi/icon48x48_2.png create mode 100644 samples/ApiDemos/res/drawable-mdpi/progress_circular_background.png create mode 100644 samples/ApiDemos/res/drawable-mdpi/progress_particle.png create mode 100644 samples/ApiDemos/res/drawable-mdpi/robot.png create mode 100755 samples/ApiDemos/res/drawable-mdpi/scrollbar_state2.png create mode 100644 samples/ApiDemos/res/drawable-mdpi/star_big_on.png create mode 100644 samples/ApiDemos/res/drawable-mdpi/stat_happy.png create mode 100644 samples/ApiDemos/res/drawable-mdpi/stat_neutral.png create mode 100644 samples/ApiDemos/res/drawable-mdpi/stat_sad.png create mode 100644 samples/ApiDemos/res/drawable-mdpi/stat_sample.png delete mode 100644 samples/ApiDemos/res/drawable/alert_dialog_icon.png delete mode 100644 samples/ApiDemos/res/drawable/app_sample_code.png delete mode 100644 samples/ApiDemos/res/drawable/arrow_down_float.png delete mode 100644 samples/ApiDemos/res/drawable/arrow_up_float.png delete mode 100644 samples/ApiDemos/res/drawable/button.9.png delete mode 100755 samples/ApiDemos/res/drawable/ic_popup_reminder.png delete mode 100755 samples/ApiDemos/res/drawable/icon48x48_2.png delete mode 100644 samples/ApiDemos/res/drawable/progress_circular_background.png delete mode 100644 samples/ApiDemos/res/drawable/progress_particle.png delete mode 100644 samples/ApiDemos/res/drawable/robot.png delete mode 100755 samples/ApiDemos/res/drawable/scrollbar_state2.png delete mode 100644 samples/ApiDemos/res/drawable/star_big_on.png delete mode 100644 samples/ApiDemos/res/drawable/stat_happy.png delete mode 100644 samples/ApiDemos/res/drawable/stat_neutral.png delete mode 100644 samples/ApiDemos/res/drawable/stat_sad.png delete mode 100644 samples/ApiDemos/res/drawable/stat_sample.png create mode 100644 samples/ApiDemos/res/layout/activity_animation.xml create mode 100644 samples/ApiDemos/src/com/example/android/apis/app/Animation.java create mode 100644 samples/ApiDemos/src/com/example/android/apis/app/WallpaperActivity.java create mode 100644 samples/ApiDemos/src/com/example/android/apis/graphics/ColorFilters.java create mode 100644 samples/ApiDemos/tests/build.properties create mode 100644 samples/BrowserPlugin/Android.mk create mode 100644 samples/BrowserPlugin/AndroidManifest.xml create mode 100644 samples/BrowserPlugin/MODULE_LICENSE_APACHE2 create mode 100644 samples/BrowserPlugin/NOTICE create mode 100644 samples/BrowserPlugin/README create mode 100644 samples/BrowserPlugin/jni/Android.mk create mode 100644 samples/BrowserPlugin/jni/PluginObject.cpp create mode 100644 samples/BrowserPlugin/jni/PluginObject.h create mode 100644 samples/BrowserPlugin/jni/animation/AnimationPlugin.cpp create mode 100644 samples/BrowserPlugin/jni/animation/AnimationPlugin.h create mode 100644 samples/BrowserPlugin/jni/audio/AudioPlugin.cpp create mode 100644 samples/BrowserPlugin/jni/audio/AudioPlugin.h create mode 100644 samples/BrowserPlugin/jni/background/BackgroundPlugin.cpp create mode 100644 samples/BrowserPlugin/jni/background/BackgroundPlugin.h create mode 100644 samples/BrowserPlugin/jni/form/FormPlugin.cpp create mode 100644 samples/BrowserPlugin/jni/form/FormPlugin.h create mode 100644 samples/BrowserPlugin/jni/hello-jni.cpp create mode 100644 samples/BrowserPlugin/jni/jni-bridge.cpp create mode 100644 samples/BrowserPlugin/jni/main.cpp create mode 100644 samples/BrowserPlugin/jni/main.h create mode 100644 samples/BrowserPlugin/jni/paint/PaintPlugin.cpp create mode 100644 samples/BrowserPlugin/jni/paint/PaintPlugin.h create mode 100755 samples/BrowserPlugin/res/drawable-hdpi/sample_browser_plugin.png create mode 100755 samples/BrowserPlugin/res/drawable-mdpi/sample_browser_plugin.png create mode 100644 samples/BrowserPlugin/res/values/strings.xml create mode 100644 samples/BrowserPlugin/src/com/android/sampleplugin/SamplePlugin.java create mode 100644 samples/BrowserPlugin/src/com/android/sampleplugin/SamplePluginStub.java create mode 100644 samples/BrowserPlugin/src/com/android/sampleplugin/graphics/Cube.java create mode 100644 samples/BrowserPlugin/src/com/android/sampleplugin/graphics/CubeRenderer.java create mode 100644 samples/BusinessCard/Android.mk create mode 100644 samples/BusinessCard/AndroidManifest.xml create mode 100644 samples/BusinessCard/res/layout/business_card.xml create mode 100644 samples/BusinessCard/res/values/strings.xml create mode 100644 samples/BusinessCard/src/com/example/android/businesscard/BusinessCardActivity.java create mode 100644 samples/BusinessCard/src/com/example/android/businesscard/ContactAccessor.java create mode 100644 samples/BusinessCard/src/com/example/android/businesscard/ContactAccessorSdk3_4.java create mode 100644 samples/BusinessCard/src/com/example/android/businesscard/ContactAccessorSdk5.java create mode 100644 samples/BusinessCard/src/com/example/android/businesscard/ContactInfo.java create mode 100644 samples/CubeLiveWallpaper/Android.mk create mode 100644 samples/CubeLiveWallpaper/AndroidManifest.xml create mode 100644 samples/CubeLiveWallpaper/MODULE_LICENSE_APACHE2 create mode 100644 samples/CubeLiveWallpaper/NOTICE create mode 100644 samples/CubeLiveWallpaper/res/drawable/ic_launcher_wallpaper.png create mode 100644 samples/CubeLiveWallpaper/res/raw/cube.rs create mode 100644 samples/CubeLiveWallpaper/res/values/shapes.xml create mode 100644 samples/CubeLiveWallpaper/res/values/strings.xml create mode 100644 samples/CubeLiveWallpaper/res/xml/cube1.xml create mode 100644 samples/CubeLiveWallpaper/res/xml/cube2.xml create mode 100644 samples/CubeLiveWallpaper/res/xml/cube2_settings.xml create mode 100644 samples/CubeLiveWallpaper/res/xml/cube3.xml create mode 100644 samples/CubeLiveWallpaper/src/com/android/livecubes/cube1/CubeWallpaper1.java create mode 100644 samples/CubeLiveWallpaper/src/com/android/livecubes/cube2/CubeWallpaper2.java create mode 100644 samples/CubeLiveWallpaper/src/com/android/livecubes/cube2/CubeWallpaper2Settings.java create mode 100644 samples/CubeLiveWallpaper/src/com/android/livecubes/cube3/Cube3RS.java create mode 100644 samples/CubeLiveWallpaper/src/com/android/livecubes/cube3/CubeWallpaper3.java create mode 100644 samples/CubeLiveWallpaper/src/com/android/livecubes/cube3/RenderScriptScene.java create mode 100644 samples/CubeLiveWallpaper/src/com/android/livecubes/cube3/RenderScriptWallpaper.java create mode 100644 samples/FixedGridLayout/Android.mk create mode 100644 samples/FixedGridLayout/AndroidManifest.xml create mode 100755 samples/FixedGridLayout/res/drawable-hdpi/bugdroid.png create mode 100644 samples/FixedGridLayout/res/drawable-mdpi/bugdroid.png create mode 100644 samples/FixedGridLayout/res/layout/main.xml create mode 100644 samples/FixedGridLayout/res/values/attrs.xml create mode 100644 samples/FixedGridLayout/res/values/strings.xml create mode 100644 samples/FixedGridLayout/src/com/example/android/fixedgridlayout/FixedGridLayout.java create mode 100644 samples/FixedGridLayout/src/com/example/android/fixedgridlayout/FixedGridLayoutTest.java create mode 100755 samples/GlobalTime/res/drawable-hdpi/app_global_time.png create mode 100644 samples/GlobalTime/res/drawable-mdpi/app_global_time.png delete mode 100644 samples/GlobalTime/res/drawable/app_global_time.png create mode 100644 samples/HelloActivity/tests/build.properties create mode 100755 samples/Home/res/drawable-hdpi/all_applications_label_background.9.png create mode 100755 samples/Home/res/drawable-hdpi/application_background.9.png create mode 100755 samples/Home/res/drawable-hdpi/application_background_static.png create mode 100755 samples/Home/res/drawable-hdpi/focused_application_background_static.png create mode 100755 samples/Home/res/drawable-hdpi/hide_all_applications.png create mode 100755 samples/Home/res/drawable-hdpi/ic_launcher_allhide.png create mode 100755 samples/Home/res/drawable-hdpi/ic_launcher_allshow.png create mode 100755 samples/Home/res/drawable-hdpi/ic_launcher_home.png create mode 100755 samples/Home/res/drawable-hdpi/pressed_application_background_static.png create mode 100755 samples/Home/res/drawable-hdpi/show_all_applications.png create mode 100644 samples/Home/res/drawable-mdpi/all_applications_label_background.9.png create mode 100644 samples/Home/res/drawable-mdpi/application_background.9.png create mode 100644 samples/Home/res/drawable-mdpi/application_background_static.png create mode 100644 samples/Home/res/drawable-mdpi/focused_application_background_static.png create mode 100644 samples/Home/res/drawable-mdpi/hide_all_applications.png create mode 100755 samples/Home/res/drawable-mdpi/ic_launcher_allhide.png create mode 100755 samples/Home/res/drawable-mdpi/ic_launcher_allshow.png create mode 100755 samples/Home/res/drawable-mdpi/ic_launcher_home.png create mode 100644 samples/Home/res/drawable-mdpi/pressed_application_background_static.png create mode 100644 samples/Home/res/drawable-mdpi/show_all_applications.png delete mode 100644 samples/Home/res/drawable/all_applications_label_background.9.png delete mode 100644 samples/Home/res/drawable/application_background.9.png delete mode 100644 samples/Home/res/drawable/application_background_static.png delete mode 100644 samples/Home/res/drawable/focused_application_background_static.png delete mode 100644 samples/Home/res/drawable/hide_all_applications.png delete mode 100755 samples/Home/res/drawable/ic_launcher_allhide.png delete mode 100755 samples/Home/res/drawable/ic_launcher_allshow.png delete mode 100755 samples/Home/res/drawable/ic_launcher_home.png delete mode 100644 samples/Home/res/drawable/pressed_application_background_static.png delete mode 100644 samples/Home/res/drawable/show_all_applications.png create mode 100644 samples/LunarLander/tests/build.properties create mode 100755 samples/NotePad/res/drawable-hdpi/app_notes.png create mode 100644 samples/NotePad/res/drawable-mdpi/app_notes.png delete mode 100644 samples/NotePad/res/drawable/app_notes.png create mode 100644 samples/NotePad/tests/build.properties create mode 100644 samples/SkeletonApp/tests/build.properties create mode 100644 samples/Snake/tests/build.properties create mode 100755 samples/SoftKeyboard/res/drawable-hdpi/sym_keyboard_delete.png create mode 100755 samples/SoftKeyboard/res/drawable-hdpi/sym_keyboard_done.png create mode 100755 samples/SoftKeyboard/res/drawable-hdpi/sym_keyboard_return.png create mode 100755 samples/SoftKeyboard/res/drawable-hdpi/sym_keyboard_search.png create mode 100755 samples/SoftKeyboard/res/drawable-hdpi/sym_keyboard_shift.png create mode 100755 samples/SoftKeyboard/res/drawable-hdpi/sym_keyboard_space.png create mode 100644 samples/SoftKeyboard/res/drawable-mdpi/sym_keyboard_delete.png create mode 100755 samples/SoftKeyboard/res/drawable-mdpi/sym_keyboard_done.png create mode 100644 samples/SoftKeyboard/res/drawable-mdpi/sym_keyboard_return.png create mode 100755 samples/SoftKeyboard/res/drawable-mdpi/sym_keyboard_search.png create mode 100644 samples/SoftKeyboard/res/drawable-mdpi/sym_keyboard_shift.png create mode 100644 samples/SoftKeyboard/res/drawable-mdpi/sym_keyboard_space.png delete mode 100644 samples/SoftKeyboard/res/drawable/sym_keyboard_delete.png delete mode 100755 samples/SoftKeyboard/res/drawable/sym_keyboard_done.png delete mode 100644 samples/SoftKeyboard/res/drawable/sym_keyboard_return.png delete mode 100755 samples/SoftKeyboard/res/drawable/sym_keyboard_search.png delete mode 100644 samples/SoftKeyboard/res/drawable/sym_keyboard_shift.png delete mode 100644 samples/SoftKeyboard/res/drawable/sym_keyboard_space.png (limited to 'samples') diff --git a/samples/ApiDemos/AndroidManifest.xml b/samples/ApiDemos/AndroidManifest.xml index 032f5c273..5eb8ccb22 100644 --- a/samples/ApiDemos/AndroidManifest.xml +++ b/samples/ApiDemos/AndroidManifest.xml @@ -24,15 +24,24 @@ - + + + + + + + + @@ -72,6 +81,15 @@ + + + + + + + @@ -90,6 +108,13 @@ + + + + + + + @@ -1562,6 +1587,13 @@ + + + + + + + diff --git a/samples/ApiDemos/default.properties b/samples/ApiDemos/default.properties deleted file mode 100644 index 9d79b12c7..000000000 --- a/samples/ApiDemos/default.properties +++ /dev/null @@ -1,11 +0,0 @@ -# This file is automatically generated by Android Tools. -# Do not modify this file -- YOUR CHANGES WILL BE ERASED! -# -# This file must be checked in Version Control Systems. -# -# To customize properties used by the Ant build system use, -# "build.properties", and override values to adapt the script to your -# project structure. - -# Project target. -target=android-4 diff --git a/samples/ApiDemos/res/anim/fade.xml b/samples/ApiDemos/res/anim/fade.xml index 78b193d53..617c5f253 100644 --- a/samples/ApiDemos/res/anim/fade.xml +++ b/samples/ApiDemos/res/anim/fade.xml @@ -16,4 +16,5 @@ + android:fromAlpha="0.0" android:toAlpha="1.0" + android:duration="@android:integer/config_longAnimTime" /> diff --git a/samples/ApiDemos/res/anim/hold.xml b/samples/ApiDemos/res/anim/hold.xml new file mode 100644 index 000000000..65fbacfc6 --- /dev/null +++ b/samples/ApiDemos/res/anim/hold.xml @@ -0,0 +1,20 @@ + + + + diff --git a/samples/ApiDemos/res/anim/slide_left.xml b/samples/ApiDemos/res/anim/slide_left.xml index 87604919f..0a591b05a 100644 --- a/samples/ApiDemos/res/anim/slide_left.xml +++ b/samples/ApiDemos/res/anim/slide_left.xml @@ -15,5 +15,6 @@ --> - + diff --git a/samples/ApiDemos/res/anim/slide_right.xml b/samples/ApiDemos/res/anim/slide_right.xml index 7aaacdb0a..edeed2472 100644 --- a/samples/ApiDemos/res/anim/slide_right.xml +++ b/samples/ApiDemos/res/anim/slide_right.xml @@ -15,5 +15,6 @@ --> - + diff --git a/samples/ApiDemos/res/anim/zoom_enter.xml b/samples/ApiDemos/res/anim/zoom_enter.xml new file mode 100644 index 000000000..7c29852a8 --- /dev/null +++ b/samples/ApiDemos/res/anim/zoom_enter.xml @@ -0,0 +1,28 @@ + + + + + + + diff --git a/samples/ApiDemos/res/anim/zoom_exit.xml b/samples/ApiDemos/res/anim/zoom_exit.xml new file mode 100644 index 000000000..29dfe99a6 --- /dev/null +++ b/samples/ApiDemos/res/anim/zoom_exit.xml @@ -0,0 +1,33 @@ + + + + + + + + diff --git a/samples/ApiDemos/res/drawable-hdpi/alert_dialog_icon.png b/samples/ApiDemos/res/drawable-hdpi/alert_dialog_icon.png new file mode 100755 index 000000000..fe54477c9 Binary files /dev/null and b/samples/ApiDemos/res/drawable-hdpi/alert_dialog_icon.png differ diff --git a/samples/ApiDemos/res/drawable-hdpi/app_sample_code.png b/samples/ApiDemos/res/drawable-hdpi/app_sample_code.png new file mode 100755 index 000000000..66a198496 Binary files /dev/null and b/samples/ApiDemos/res/drawable-hdpi/app_sample_code.png differ diff --git a/samples/ApiDemos/res/drawable-hdpi/arrow_down_float.png b/samples/ApiDemos/res/drawable-hdpi/arrow_down_float.png new file mode 100755 index 000000000..923d330fa Binary files /dev/null and b/samples/ApiDemos/res/drawable-hdpi/arrow_down_float.png differ diff --git a/samples/ApiDemos/res/drawable-hdpi/arrow_up_float.png b/samples/ApiDemos/res/drawable-hdpi/arrow_up_float.png new file mode 100755 index 000000000..eda5faf84 Binary files /dev/null and b/samples/ApiDemos/res/drawable-hdpi/arrow_up_float.png differ diff --git a/samples/ApiDemos/res/drawable-hdpi/btn_check_off.png b/samples/ApiDemos/res/drawable-hdpi/btn_check_off.png new file mode 100755 index 000000000..0cf1f04a2 Binary files /dev/null and b/samples/ApiDemos/res/drawable-hdpi/btn_check_off.png differ diff --git a/samples/ApiDemos/res/drawable-hdpi/btn_check_on.png b/samples/ApiDemos/res/drawable-hdpi/btn_check_on.png new file mode 100755 index 000000000..fc791c45d Binary files /dev/null and b/samples/ApiDemos/res/drawable-hdpi/btn_check_on.png differ diff --git a/samples/ApiDemos/res/drawable-hdpi/btn_circle_normal.png b/samples/ApiDemos/res/drawable-hdpi/btn_circle_normal.png new file mode 100755 index 000000000..bf3fb5a05 Binary files /dev/null and b/samples/ApiDemos/res/drawable-hdpi/btn_circle_normal.png differ diff --git a/samples/ApiDemos/res/drawable-hdpi/btn_default_normal.9.png b/samples/ApiDemos/res/drawable-hdpi/btn_default_normal.9.png new file mode 100755 index 000000000..5d3d73302 Binary files /dev/null and b/samples/ApiDemos/res/drawable-hdpi/btn_default_normal.9.png differ diff --git a/samples/ApiDemos/res/drawable-hdpi/button.9.png b/samples/ApiDemos/res/drawable-hdpi/button.9.png new file mode 100755 index 000000000..6995e609f Binary files /dev/null and b/samples/ApiDemos/res/drawable-hdpi/button.9.png differ diff --git a/samples/ApiDemos/res/drawable-hdpi/ic_popup_reminder.png b/samples/ApiDemos/res/drawable-hdpi/ic_popup_reminder.png new file mode 100755 index 000000000..9652ddeb3 Binary files /dev/null and b/samples/ApiDemos/res/drawable-hdpi/ic_popup_reminder.png differ diff --git a/samples/ApiDemos/res/drawable-hdpi/icon48x48_2.png b/samples/ApiDemos/res/drawable-hdpi/icon48x48_2.png new file mode 100755 index 000000000..1e256e683 Binary files /dev/null and b/samples/ApiDemos/res/drawable-hdpi/icon48x48_2.png differ diff --git a/samples/ApiDemos/res/drawable-hdpi/progress_circular_background.png b/samples/ApiDemos/res/drawable-hdpi/progress_circular_background.png new file mode 100755 index 000000000..c4ecd1f4e Binary files /dev/null and b/samples/ApiDemos/res/drawable-hdpi/progress_circular_background.png differ diff --git a/samples/ApiDemos/res/drawable-hdpi/progress_particle.png b/samples/ApiDemos/res/drawable-hdpi/progress_particle.png new file mode 100755 index 000000000..3e72fb419 Binary files /dev/null and b/samples/ApiDemos/res/drawable-hdpi/progress_particle.png differ diff --git a/samples/ApiDemos/res/drawable-hdpi/robot.png b/samples/ApiDemos/res/drawable-hdpi/robot.png new file mode 100755 index 000000000..3e4fd2143 Binary files /dev/null and b/samples/ApiDemos/res/drawable-hdpi/robot.png differ diff --git a/samples/ApiDemos/res/drawable-hdpi/scrollbar_state2.png b/samples/ApiDemos/res/drawable-hdpi/scrollbar_state2.png new file mode 100755 index 000000000..41ed5b7fa Binary files /dev/null and b/samples/ApiDemos/res/drawable-hdpi/scrollbar_state2.png differ diff --git a/samples/ApiDemos/res/drawable-hdpi/star_big_on.png b/samples/ApiDemos/res/drawable-hdpi/star_big_on.png new file mode 100755 index 000000000..944918eb0 Binary files /dev/null and b/samples/ApiDemos/res/drawable-hdpi/star_big_on.png differ diff --git a/samples/ApiDemos/res/drawable-hdpi/stat_happy.png b/samples/ApiDemos/res/drawable-hdpi/stat_happy.png new file mode 100755 index 000000000..27f5bb74e Binary files /dev/null and b/samples/ApiDemos/res/drawable-hdpi/stat_happy.png differ diff --git a/samples/ApiDemos/res/drawable-hdpi/stat_neutral.png b/samples/ApiDemos/res/drawable-hdpi/stat_neutral.png new file mode 100755 index 000000000..34073ffb0 Binary files /dev/null and b/samples/ApiDemos/res/drawable-hdpi/stat_neutral.png differ diff --git a/samples/ApiDemos/res/drawable-hdpi/stat_sad.png b/samples/ApiDemos/res/drawable-hdpi/stat_sad.png new file mode 100755 index 000000000..25004cd8e Binary files /dev/null and b/samples/ApiDemos/res/drawable-hdpi/stat_sad.png differ diff --git a/samples/ApiDemos/res/drawable-hdpi/stat_sample.png b/samples/ApiDemos/res/drawable-hdpi/stat_sample.png new file mode 100755 index 000000000..6c9ba0a97 Binary files /dev/null and b/samples/ApiDemos/res/drawable-hdpi/stat_sample.png differ diff --git a/samples/ApiDemos/res/drawable-mdpi/alert_dialog_icon.png b/samples/ApiDemos/res/drawable-mdpi/alert_dialog_icon.png new file mode 100644 index 000000000..0a7de0476 Binary files /dev/null and b/samples/ApiDemos/res/drawable-mdpi/alert_dialog_icon.png differ diff --git a/samples/ApiDemos/res/drawable-mdpi/app_sample_code.png b/samples/ApiDemos/res/drawable-mdpi/app_sample_code.png new file mode 100644 index 000000000..5ae7701a8 Binary files /dev/null and b/samples/ApiDemos/res/drawable-mdpi/app_sample_code.png differ diff --git a/samples/ApiDemos/res/drawable-mdpi/arrow_down_float.png b/samples/ApiDemos/res/drawable-mdpi/arrow_down_float.png new file mode 100644 index 000000000..bfe0ce67c Binary files /dev/null and b/samples/ApiDemos/res/drawable-mdpi/arrow_down_float.png differ diff --git a/samples/ApiDemos/res/drawable-mdpi/arrow_up_float.png b/samples/ApiDemos/res/drawable-mdpi/arrow_up_float.png new file mode 100644 index 000000000..77673ef2b Binary files /dev/null and b/samples/ApiDemos/res/drawable-mdpi/arrow_up_float.png differ diff --git a/samples/ApiDemos/res/drawable-mdpi/btn_check_off.png b/samples/ApiDemos/res/drawable-mdpi/btn_check_off.png new file mode 100644 index 000000000..56d386154 Binary files /dev/null and b/samples/ApiDemos/res/drawable-mdpi/btn_check_off.png differ diff --git a/samples/ApiDemos/res/drawable-mdpi/btn_check_on.png b/samples/ApiDemos/res/drawable-mdpi/btn_check_on.png new file mode 100644 index 000000000..791ac1d92 Binary files /dev/null and b/samples/ApiDemos/res/drawable-mdpi/btn_check_on.png differ diff --git a/samples/ApiDemos/res/drawable-mdpi/btn_circle_normal.png b/samples/ApiDemos/res/drawable-mdpi/btn_circle_normal.png new file mode 100644 index 000000000..fc5af1c9f Binary files /dev/null and b/samples/ApiDemos/res/drawable-mdpi/btn_circle_normal.png differ diff --git a/samples/ApiDemos/res/drawable-mdpi/btn_default_normal.9.png b/samples/ApiDemos/res/drawable-mdpi/btn_default_normal.9.png new file mode 100644 index 000000000..a2d5ccd20 Binary files /dev/null and b/samples/ApiDemos/res/drawable-mdpi/btn_default_normal.9.png differ diff --git a/samples/ApiDemos/res/drawable-mdpi/button.9.png b/samples/ApiDemos/res/drawable-mdpi/button.9.png new file mode 100644 index 000000000..f6da7e5ab Binary files /dev/null and b/samples/ApiDemos/res/drawable-mdpi/button.9.png differ diff --git a/samples/ApiDemos/res/drawable-mdpi/ic_popup_reminder.png b/samples/ApiDemos/res/drawable-mdpi/ic_popup_reminder.png new file mode 100755 index 000000000..4f2b82ce5 Binary files /dev/null and b/samples/ApiDemos/res/drawable-mdpi/ic_popup_reminder.png differ diff --git a/samples/ApiDemos/res/drawable-mdpi/icon48x48_2.png b/samples/ApiDemos/res/drawable-mdpi/icon48x48_2.png new file mode 100755 index 000000000..84af2a2f1 Binary files /dev/null and b/samples/ApiDemos/res/drawable-mdpi/icon48x48_2.png differ diff --git a/samples/ApiDemos/res/drawable-mdpi/progress_circular_background.png b/samples/ApiDemos/res/drawable-mdpi/progress_circular_background.png new file mode 100644 index 000000000..7c637fd60 Binary files /dev/null and b/samples/ApiDemos/res/drawable-mdpi/progress_circular_background.png differ diff --git a/samples/ApiDemos/res/drawable-mdpi/progress_particle.png b/samples/ApiDemos/res/drawable-mdpi/progress_particle.png new file mode 100644 index 000000000..916010869 Binary files /dev/null and b/samples/ApiDemos/res/drawable-mdpi/progress_particle.png differ diff --git a/samples/ApiDemos/res/drawable-mdpi/robot.png b/samples/ApiDemos/res/drawable-mdpi/robot.png new file mode 100644 index 000000000..8a9e6984b Binary files /dev/null and b/samples/ApiDemos/res/drawable-mdpi/robot.png differ diff --git a/samples/ApiDemos/res/drawable-mdpi/scrollbar_state2.png b/samples/ApiDemos/res/drawable-mdpi/scrollbar_state2.png new file mode 100755 index 000000000..012f737d5 Binary files /dev/null and b/samples/ApiDemos/res/drawable-mdpi/scrollbar_state2.png differ diff --git a/samples/ApiDemos/res/drawable-mdpi/star_big_on.png b/samples/ApiDemos/res/drawable-mdpi/star_big_on.png new file mode 100644 index 000000000..510c8b227 Binary files /dev/null and b/samples/ApiDemos/res/drawable-mdpi/star_big_on.png differ diff --git a/samples/ApiDemos/res/drawable-mdpi/stat_happy.png b/samples/ApiDemos/res/drawable-mdpi/stat_happy.png new file mode 100644 index 000000000..3a8791bab Binary files /dev/null and b/samples/ApiDemos/res/drawable-mdpi/stat_happy.png differ diff --git a/samples/ApiDemos/res/drawable-mdpi/stat_neutral.png b/samples/ApiDemos/res/drawable-mdpi/stat_neutral.png new file mode 100644 index 000000000..1dc059444 Binary files /dev/null and b/samples/ApiDemos/res/drawable-mdpi/stat_neutral.png differ diff --git a/samples/ApiDemos/res/drawable-mdpi/stat_sad.png b/samples/ApiDemos/res/drawable-mdpi/stat_sad.png new file mode 100644 index 000000000..17d26deb9 Binary files /dev/null and b/samples/ApiDemos/res/drawable-mdpi/stat_sad.png differ diff --git a/samples/ApiDemos/res/drawable-mdpi/stat_sample.png b/samples/ApiDemos/res/drawable-mdpi/stat_sample.png new file mode 100644 index 000000000..1733042c9 Binary files /dev/null and b/samples/ApiDemos/res/drawable-mdpi/stat_sample.png differ diff --git a/samples/ApiDemos/res/drawable/alert_dialog_icon.png b/samples/ApiDemos/res/drawable/alert_dialog_icon.png deleted file mode 100644 index 0a7de0476..000000000 Binary files a/samples/ApiDemos/res/drawable/alert_dialog_icon.png and /dev/null differ diff --git a/samples/ApiDemos/res/drawable/app_sample_code.png b/samples/ApiDemos/res/drawable/app_sample_code.png deleted file mode 100644 index 5ae7701a8..000000000 Binary files a/samples/ApiDemos/res/drawable/app_sample_code.png and /dev/null differ diff --git a/samples/ApiDemos/res/drawable/arrow_down_float.png b/samples/ApiDemos/res/drawable/arrow_down_float.png deleted file mode 100644 index bfe0ce67c..000000000 Binary files a/samples/ApiDemos/res/drawable/arrow_down_float.png and /dev/null differ diff --git a/samples/ApiDemos/res/drawable/arrow_up_float.png b/samples/ApiDemos/res/drawable/arrow_up_float.png deleted file mode 100644 index 77673ef2b..000000000 Binary files a/samples/ApiDemos/res/drawable/arrow_up_float.png and /dev/null differ diff --git a/samples/ApiDemos/res/drawable/button.9.png b/samples/ApiDemos/res/drawable/button.9.png deleted file mode 100644 index f6da7e5ab..000000000 Binary files a/samples/ApiDemos/res/drawable/button.9.png and /dev/null differ diff --git a/samples/ApiDemos/res/drawable/ic_popup_reminder.png b/samples/ApiDemos/res/drawable/ic_popup_reminder.png deleted file mode 100755 index 4f2b82ce5..000000000 Binary files a/samples/ApiDemos/res/drawable/ic_popup_reminder.png and /dev/null differ diff --git a/samples/ApiDemos/res/drawable/icon48x48_2.png b/samples/ApiDemos/res/drawable/icon48x48_2.png deleted file mode 100755 index 84af2a2f1..000000000 Binary files a/samples/ApiDemos/res/drawable/icon48x48_2.png and /dev/null differ diff --git a/samples/ApiDemos/res/drawable/progress_circular_background.png b/samples/ApiDemos/res/drawable/progress_circular_background.png deleted file mode 100644 index 7c637fd60..000000000 Binary files a/samples/ApiDemos/res/drawable/progress_circular_background.png and /dev/null differ diff --git a/samples/ApiDemos/res/drawable/progress_particle.png b/samples/ApiDemos/res/drawable/progress_particle.png deleted file mode 100644 index 916010869..000000000 Binary files a/samples/ApiDemos/res/drawable/progress_particle.png and /dev/null differ diff --git a/samples/ApiDemos/res/drawable/robot.png b/samples/ApiDemos/res/drawable/robot.png deleted file mode 100644 index 8a9e6984b..000000000 Binary files a/samples/ApiDemos/res/drawable/robot.png and /dev/null differ diff --git a/samples/ApiDemos/res/drawable/scrollbar_state2.png b/samples/ApiDemos/res/drawable/scrollbar_state2.png deleted file mode 100755 index 012f737d5..000000000 Binary files a/samples/ApiDemos/res/drawable/scrollbar_state2.png and /dev/null differ diff --git a/samples/ApiDemos/res/drawable/star_big_on.png b/samples/ApiDemos/res/drawable/star_big_on.png deleted file mode 100644 index 510c8b227..000000000 Binary files a/samples/ApiDemos/res/drawable/star_big_on.png and /dev/null differ diff --git a/samples/ApiDemos/res/drawable/stat_happy.png b/samples/ApiDemos/res/drawable/stat_happy.png deleted file mode 100644 index 3a8791bab..000000000 Binary files a/samples/ApiDemos/res/drawable/stat_happy.png and /dev/null differ diff --git a/samples/ApiDemos/res/drawable/stat_neutral.png b/samples/ApiDemos/res/drawable/stat_neutral.png deleted file mode 100644 index 1dc059444..000000000 Binary files a/samples/ApiDemos/res/drawable/stat_neutral.png and /dev/null differ diff --git a/samples/ApiDemos/res/drawable/stat_sad.png b/samples/ApiDemos/res/drawable/stat_sad.png deleted file mode 100644 index 17d26deb9..000000000 Binary files a/samples/ApiDemos/res/drawable/stat_sad.png and /dev/null differ diff --git a/samples/ApiDemos/res/drawable/stat_sample.png b/samples/ApiDemos/res/drawable/stat_sample.png deleted file mode 100644 index 1733042c9..000000000 Binary files a/samples/ApiDemos/res/drawable/stat_sample.png and /dev/null differ diff --git a/samples/ApiDemos/res/layout/activity_animation.xml b/samples/ApiDemos/res/layout/activity_animation.xml new file mode 100644 index 000000000..446f73585 --- /dev/null +++ b/samples/ApiDemos/res/layout/activity_animation.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + diff --git a/samples/ApiDemos/res/layout/service_start_arguments_controller.xml b/samples/ApiDemos/res/layout/service_start_arguments_controller.xml index f10a2c396..19b749802 100644 --- a/samples/ApiDemos/res/layout/service_start_arguments_controller.xml +++ b/samples/ApiDemos/res/layout/service_start_arguments_controller.xml @@ -43,5 +43,15 @@ android:text="@string/start3_service"> + + + + diff --git a/samples/ApiDemos/res/values/strings.xml b/samples/ApiDemos/res/values/strings.xml index c2c98295b..2800bff53 100644 --- a/samples/ApiDemos/res/values/strings.xml +++ b/samples/ApiDemos/res/values/strings.xml @@ -38,6 +38,8 @@ custom Theme.Dialog theme to make an activity that looks like a customized dialog, here with an ugly frame. + App/Activity/Wallpaper + App/Activity/Translucent Example of how you can make an activity have a translucent background, compositing over @@ -45,6 +47,11 @@ App/Activity/Translucent Blur + App/Activity/Animation + Press a button to launch an activity with a custom animation. + Fade in + Zoom in + App/Activity/Save & Restore State Demonstration of saving and restoring activity state in onSaveInstanceState() and onCreate(). This text field saves its state: @@ -115,9 +122,6 @@ Disconnected from remote service Failure calling remote service - "Started with arguments: " - Finished arguments, - stopping. Sample Service Start Arguments @@ -128,10 +132,13 @@ service can be started with arguments, and run until all arguments are processed. - Start with \"One\" - Start with \"Two\" - Start with \"Three\" - + Start \"One\" no redeliver + Start \"Two\" no redeliver + Start \"Three\" w/redeliver + Start failed delivery + Service created. + Service destroyed. + The one-shot alarm has gone off The repeating alarm has gone off @@ -362,8 +369,8 @@ This is a custom counter preference Haunted preference - I'm on! :) - I'm off! :( + I\'m on! :) + I\'m off! :( Parent toggle This is visually a parent @@ -632,13 +639,13 @@ using the Java programming language and run on Dalvik, a custom virtual machine designed for embedded use which runs on top of a Linux kernel. - If you want to know how to develop applications for Android, you're in the + If you want to know how to develop applications for Android, you\'re in the right place. This site provides a variety of documentation that will help you learn about Android and develop mobile applications for the platform. An early look at the the Android SDK is also available. It includes sample projects with source code, development tools, an emulator, and of course all - the libraries you'll need to build an Android application. What would it take + the libraries you\'ll need to build an Android application. What would it take to build a better mobile phone? Color: diff --git a/samples/ApiDemos/res/values/styles.xml b/samples/ApiDemos/res/values/styles.xml index 3c9c68185..8cc831287 100644 --- a/samples/ApiDemos/res/values/styles.xml +++ b/samples/ApiDemos/res/values/styles.xml @@ -37,9 +37,16 @@ @drawable/filled_box + + + + which sets up various attributes correctly. -->