From efd1db011b7c85ffd590ec80f535d95070d4371e Mon Sep 17 00:00:00 2001 From: Yuli Huang Date: Mon, 12 Sep 2011 22:25:30 +0800 Subject: Fix b/4643148: Make PhotoEditor integrated into Gallery. 1. Move PhotoEditor code/resources into Gallery for single apk. 2. Change PhotoEditor package to com.android.gallery3d.photoeditor. 3. Rename PhotoEditor resources to avoid mess up Gallery resources. 4. Move Doodle effect from fix-effects to color-effects. 5. Update PhotoEditor bottom action-bar background. Change-Id: I1a2f7d27d89a14fe6a0435575b993ed8b75e6bf4 --- res/anim/photoeditor_fade_in.xml | 21 ++++ res/anim/photoeditor_fade_out.xml | 21 ++++ .../photoeditor_actionbar_translucent.9.png | Bin 0 -> 223 bytes .../photoeditor_actionbar_translucent_bottom.9.png | Bin 0 -> 229 bytes res/drawable/photoeditor_arrow_back.png | Bin 0 -> 602 bytes res/drawable/photoeditor_artistic.png | Bin 0 -> 1115 bytes res/drawable/photoeditor_color.png | Bin 0 -> 1277 bytes res/drawable/photoeditor_effect_autofix.png | Bin 0 -> 51787 bytes res/drawable/photoeditor_effect_crop.png | Bin 0 -> 999 bytes res/drawable/photoeditor_effect_crossprocess.png | Bin 0 -> 40152 bytes res/drawable/photoeditor_effect_documentary.png | Bin 0 -> 28936 bytes res/drawable/photoeditor_effect_doodle.png | Bin 0 -> 50595 bytes res/drawable/photoeditor_effect_duotone.png | Bin 0 -> 38379 bytes res/drawable/photoeditor_effect_filllight.png | Bin 0 -> 45771 bytes res/drawable/photoeditor_effect_fisheye.png | Bin 0 -> 47427 bytes res/drawable/photoeditor_effect_flip.png | Bin 0 -> 1809 bytes res/drawable/photoeditor_effect_grain.png | Bin 0 -> 63830 bytes res/drawable/photoeditor_effect_grayscale.png | Bin 0 -> 29671 bytes res/drawable/photoeditor_effect_highlight.png | Bin 0 -> 45963 bytes res/drawable/photoeditor_effect_lomoish.png | Bin 0 -> 47194 bytes res/drawable/photoeditor_effect_negative.png | Bin 0 -> 50435 bytes res/drawable/photoeditor_effect_posterize.png | Bin 0 -> 41012 bytes res/drawable/photoeditor_effect_redeye.png | Bin 0 -> 1799 bytes res/drawable/photoeditor_effect_rotate.png | Bin 0 -> 2185 bytes res/drawable/photoeditor_effect_saturation.png | Bin 0 -> 47988 bytes res/drawable/photoeditor_effect_sepia.png | Bin 0 -> 33255 bytes res/drawable/photoeditor_effect_shadow.png | Bin 0 -> 49671 bytes res/drawable/photoeditor_effect_sharpen.png | Bin 0 -> 1378 bytes res/drawable/photoeditor_effect_straighten.png | Bin 0 -> 3104 bytes res/drawable/photoeditor_effect_temperature.png | Bin 0 -> 51109 bytes res/drawable/photoeditor_effect_tint.png | Bin 0 -> 34825 bytes res/drawable/photoeditor_effect_vignette.png | Bin 0 -> 43507 bytes res/drawable/photoeditor_exposure.png | Bin 0 -> 847 bytes res/drawable/photoeditor_fix.png | Bin 0 -> 975 bytes res/drawable/photoeditor_redo.png | Bin 0 -> 964 bytes res/drawable/photoeditor_scale_seekbar_color.9.png | Bin 0 -> 1006 bytes .../photoeditor_scale_seekbar_filllight.9.png | Bin 0 -> 846 bytes .../photoeditor_scale_seekbar_generic.9.png | Bin 0 -> 1326 bytes .../photoeditor_scale_seekbar_highlight.9.png | Bin 0 -> 974 bytes .../photoeditor_scale_seekbar_shadow.9.png | Bin 0 -> 806 bytes res/drawable/photoeditor_seekbar_thumb.png | Bin 0 -> 1181 bytes .../photoeditor_toggle_button_background.xml | 24 ++++ .../photoeditor_toggle_button_highlight.9.png | Bin 0 -> 182 bytes res/drawable/photoeditor_undo.png | Bin 0 -> 965 bytes res/layout/photoeditor_color_seekbar.xml | 24 ++++ res/layout/photoeditor_crop_view.xml | 20 ++++ res/layout/photoeditor_doodle_view.xml | 20 ++++ res/layout/photoeditor_effect_tool_panel.xml | 29 +++++ res/layout/photoeditor_effects_artistic.xml | 92 ++++++++++++++ res/layout/photoeditor_effects_color.xml | 103 ++++++++++++++++ res/layout/photoeditor_effects_exposure.xml | 62 ++++++++++ res/layout/photoeditor_effects_fix.xml | 87 ++++++++++++++ res/layout/photoeditor_effects_gallery.xml | 30 +++++ res/layout/photoeditor_main.xml | 85 +++++++++++++ res/layout/photoeditor_rotate_view.xml | 20 ++++ res/layout/photoeditor_scale_seekbar.xml | 24 ++++ res/layout/photoeditor_touch_view.xml | 20 ++++ res/values-sw320dp/photoeditor_dimens.xml | 42 +++++++ res/values-sw600dp/photoeditor_dimens.xml | 42 +++++++ res/values-sw800dp/photoeditor_dimens.xml | 42 +++++++ res/values/photoeditor_arrays.xml | 44 +++++++ res/values/photoeditor_colors.xml | 43 +++++++ res/values/photoeditor_styles.xml | 133 +++++++++++++++++++++ .../photoeditor/SpinnerProgressDialog.java | 72 +++++++++++ 64 files changed, 1100 insertions(+) create mode 100644 res/anim/photoeditor_fade_in.xml create mode 100644 res/anim/photoeditor_fade_out.xml create mode 100644 res/drawable/photoeditor_actionbar_translucent.9.png create mode 100644 res/drawable/photoeditor_actionbar_translucent_bottom.9.png create mode 100644 res/drawable/photoeditor_arrow_back.png create mode 100644 res/drawable/photoeditor_artistic.png create mode 100644 res/drawable/photoeditor_color.png create mode 100644 res/drawable/photoeditor_effect_autofix.png create mode 100644 res/drawable/photoeditor_effect_crop.png create mode 100644 res/drawable/photoeditor_effect_crossprocess.png create mode 100644 res/drawable/photoeditor_effect_documentary.png create mode 100644 res/drawable/photoeditor_effect_doodle.png create mode 100644 res/drawable/photoeditor_effect_duotone.png create mode 100644 res/drawable/photoeditor_effect_filllight.png create mode 100644 res/drawable/photoeditor_effect_fisheye.png create mode 100644 res/drawable/photoeditor_effect_flip.png create mode 100644 res/drawable/photoeditor_effect_grain.png create mode 100644 res/drawable/photoeditor_effect_grayscale.png create mode 100644 res/drawable/photoeditor_effect_highlight.png create mode 100644 res/drawable/photoeditor_effect_lomoish.png create mode 100644 res/drawable/photoeditor_effect_negative.png create mode 100644 res/drawable/photoeditor_effect_posterize.png create mode 100644 res/drawable/photoeditor_effect_redeye.png create mode 100644 res/drawable/photoeditor_effect_rotate.png create mode 100644 res/drawable/photoeditor_effect_saturation.png create mode 100644 res/drawable/photoeditor_effect_sepia.png create mode 100644 res/drawable/photoeditor_effect_shadow.png create mode 100644 res/drawable/photoeditor_effect_sharpen.png create mode 100644 res/drawable/photoeditor_effect_straighten.png create mode 100644 res/drawable/photoeditor_effect_temperature.png create mode 100644 res/drawable/photoeditor_effect_tint.png create mode 100644 res/drawable/photoeditor_effect_vignette.png create mode 100644 res/drawable/photoeditor_exposure.png create mode 100644 res/drawable/photoeditor_fix.png create mode 100644 res/drawable/photoeditor_redo.png create mode 100644 res/drawable/photoeditor_scale_seekbar_color.9.png create mode 100644 res/drawable/photoeditor_scale_seekbar_filllight.9.png create mode 100644 res/drawable/photoeditor_scale_seekbar_generic.9.png create mode 100644 res/drawable/photoeditor_scale_seekbar_highlight.9.png create mode 100644 res/drawable/photoeditor_scale_seekbar_shadow.9.png create mode 100644 res/drawable/photoeditor_seekbar_thumb.png create mode 100644 res/drawable/photoeditor_toggle_button_background.xml create mode 100644 res/drawable/photoeditor_toggle_button_highlight.9.png create mode 100644 res/drawable/photoeditor_undo.png create mode 100644 res/layout/photoeditor_color_seekbar.xml create mode 100644 res/layout/photoeditor_crop_view.xml create mode 100644 res/layout/photoeditor_doodle_view.xml create mode 100644 res/layout/photoeditor_effect_tool_panel.xml create mode 100644 res/layout/photoeditor_effects_artistic.xml create mode 100644 res/layout/photoeditor_effects_color.xml create mode 100644 res/layout/photoeditor_effects_exposure.xml create mode 100644 res/layout/photoeditor_effects_fix.xml create mode 100644 res/layout/photoeditor_effects_gallery.xml create mode 100644 res/layout/photoeditor_main.xml create mode 100644 res/layout/photoeditor_rotate_view.xml create mode 100644 res/layout/photoeditor_scale_seekbar.xml create mode 100644 res/layout/photoeditor_touch_view.xml create mode 100755 res/values-sw320dp/photoeditor_dimens.xml create mode 100755 res/values-sw600dp/photoeditor_dimens.xml create mode 100755 res/values-sw800dp/photoeditor_dimens.xml create mode 100644 res/values/photoeditor_arrays.xml create mode 100644 res/values/photoeditor_colors.xml create mode 100644 res/values/photoeditor_styles.xml create mode 100644 src/com/android/gallery3d/photoeditor/SpinnerProgressDialog.java diff --git a/res/anim/photoeditor_fade_in.xml b/res/anim/photoeditor_fade_in.xml new file mode 100644 index 000000000..73340410b --- /dev/null +++ b/res/anim/photoeditor_fade_in.xml @@ -0,0 +1,21 @@ + + + + diff --git a/res/anim/photoeditor_fade_out.xml b/res/anim/photoeditor_fade_out.xml new file mode 100644 index 000000000..ad97c4916 --- /dev/null +++ b/res/anim/photoeditor_fade_out.xml @@ -0,0 +1,21 @@ + + + + diff --git a/res/drawable/photoeditor_actionbar_translucent.9.png b/res/drawable/photoeditor_actionbar_translucent.9.png new file mode 100644 index 000000000..76775a37c Binary files /dev/null and b/res/drawable/photoeditor_actionbar_translucent.9.png differ diff --git a/res/drawable/photoeditor_actionbar_translucent_bottom.9.png b/res/drawable/photoeditor_actionbar_translucent_bottom.9.png new file mode 100644 index 000000000..97018f832 Binary files /dev/null and b/res/drawable/photoeditor_actionbar_translucent_bottom.9.png differ diff --git a/res/drawable/photoeditor_arrow_back.png b/res/drawable/photoeditor_arrow_back.png new file mode 100644 index 000000000..897a1c11a Binary files /dev/null and b/res/drawable/photoeditor_arrow_back.png differ diff --git a/res/drawable/photoeditor_artistic.png b/res/drawable/photoeditor_artistic.png new file mode 100644 index 000000000..c887fe4d1 Binary files /dev/null and b/res/drawable/photoeditor_artistic.png differ diff --git a/res/drawable/photoeditor_color.png b/res/drawable/photoeditor_color.png new file mode 100644 index 000000000..566773dbe Binary files /dev/null and b/res/drawable/photoeditor_color.png differ diff --git a/res/drawable/photoeditor_effect_autofix.png b/res/drawable/photoeditor_effect_autofix.png new file mode 100644 index 000000000..f0e2d46c8 Binary files /dev/null and b/res/drawable/photoeditor_effect_autofix.png differ diff --git a/res/drawable/photoeditor_effect_crop.png b/res/drawable/photoeditor_effect_crop.png new file mode 100644 index 000000000..eb7da1b21 Binary files /dev/null and b/res/drawable/photoeditor_effect_crop.png differ diff --git a/res/drawable/photoeditor_effect_crossprocess.png b/res/drawable/photoeditor_effect_crossprocess.png new file mode 100644 index 000000000..f9e596ad2 Binary files /dev/null and b/res/drawable/photoeditor_effect_crossprocess.png differ diff --git a/res/drawable/photoeditor_effect_documentary.png b/res/drawable/photoeditor_effect_documentary.png new file mode 100644 index 000000000..92c40f997 Binary files /dev/null and b/res/drawable/photoeditor_effect_documentary.png differ diff --git a/res/drawable/photoeditor_effect_doodle.png b/res/drawable/photoeditor_effect_doodle.png new file mode 100644 index 000000000..5b63178d6 Binary files /dev/null and b/res/drawable/photoeditor_effect_doodle.png differ diff --git a/res/drawable/photoeditor_effect_duotone.png b/res/drawable/photoeditor_effect_duotone.png new file mode 100644 index 000000000..994e10410 Binary files /dev/null and b/res/drawable/photoeditor_effect_duotone.png differ diff --git a/res/drawable/photoeditor_effect_filllight.png b/res/drawable/photoeditor_effect_filllight.png new file mode 100644 index 000000000..999b7f71e Binary files /dev/null and b/res/drawable/photoeditor_effect_filllight.png differ diff --git a/res/drawable/photoeditor_effect_fisheye.png b/res/drawable/photoeditor_effect_fisheye.png new file mode 100644 index 000000000..5fd1b93d3 Binary files /dev/null and b/res/drawable/photoeditor_effect_fisheye.png differ diff --git a/res/drawable/photoeditor_effect_flip.png b/res/drawable/photoeditor_effect_flip.png new file mode 100644 index 000000000..dd74813a7 Binary files /dev/null and b/res/drawable/photoeditor_effect_flip.png differ diff --git a/res/drawable/photoeditor_effect_grain.png b/res/drawable/photoeditor_effect_grain.png new file mode 100644 index 000000000..f6ff7fa3f Binary files /dev/null and b/res/drawable/photoeditor_effect_grain.png differ diff --git a/res/drawable/photoeditor_effect_grayscale.png b/res/drawable/photoeditor_effect_grayscale.png new file mode 100644 index 000000000..3c09cd35b Binary files /dev/null and b/res/drawable/photoeditor_effect_grayscale.png differ diff --git a/res/drawable/photoeditor_effect_highlight.png b/res/drawable/photoeditor_effect_highlight.png new file mode 100644 index 000000000..1d59fb48e Binary files /dev/null and b/res/drawable/photoeditor_effect_highlight.png differ diff --git a/res/drawable/photoeditor_effect_lomoish.png b/res/drawable/photoeditor_effect_lomoish.png new file mode 100644 index 000000000..ee347e6b9 Binary files /dev/null and b/res/drawable/photoeditor_effect_lomoish.png differ diff --git a/res/drawable/photoeditor_effect_negative.png b/res/drawable/photoeditor_effect_negative.png new file mode 100644 index 000000000..96da62c5f Binary files /dev/null and b/res/drawable/photoeditor_effect_negative.png differ diff --git a/res/drawable/photoeditor_effect_posterize.png b/res/drawable/photoeditor_effect_posterize.png new file mode 100644 index 000000000..ac5384b4d Binary files /dev/null and b/res/drawable/photoeditor_effect_posterize.png differ diff --git a/res/drawable/photoeditor_effect_redeye.png b/res/drawable/photoeditor_effect_redeye.png new file mode 100644 index 000000000..ba845b5ee Binary files /dev/null and b/res/drawable/photoeditor_effect_redeye.png differ diff --git a/res/drawable/photoeditor_effect_rotate.png b/res/drawable/photoeditor_effect_rotate.png new file mode 100644 index 000000000..fa50ce26f Binary files /dev/null and b/res/drawable/photoeditor_effect_rotate.png differ diff --git a/res/drawable/photoeditor_effect_saturation.png b/res/drawable/photoeditor_effect_saturation.png new file mode 100644 index 000000000..d151d5c17 Binary files /dev/null and b/res/drawable/photoeditor_effect_saturation.png differ diff --git a/res/drawable/photoeditor_effect_sepia.png b/res/drawable/photoeditor_effect_sepia.png new file mode 100644 index 000000000..236b9908f Binary files /dev/null and b/res/drawable/photoeditor_effect_sepia.png differ diff --git a/res/drawable/photoeditor_effect_shadow.png b/res/drawable/photoeditor_effect_shadow.png new file mode 100644 index 000000000..e3caa4409 Binary files /dev/null and b/res/drawable/photoeditor_effect_shadow.png differ diff --git a/res/drawable/photoeditor_effect_sharpen.png b/res/drawable/photoeditor_effect_sharpen.png new file mode 100644 index 000000000..2bd0fff6d Binary files /dev/null and b/res/drawable/photoeditor_effect_sharpen.png differ diff --git a/res/drawable/photoeditor_effect_straighten.png b/res/drawable/photoeditor_effect_straighten.png new file mode 100644 index 000000000..309eb5ae2 Binary files /dev/null and b/res/drawable/photoeditor_effect_straighten.png differ diff --git a/res/drawable/photoeditor_effect_temperature.png b/res/drawable/photoeditor_effect_temperature.png new file mode 100644 index 000000000..d4f135511 Binary files /dev/null and b/res/drawable/photoeditor_effect_temperature.png differ diff --git a/res/drawable/photoeditor_effect_tint.png b/res/drawable/photoeditor_effect_tint.png new file mode 100644 index 000000000..6a6bb333b Binary files /dev/null and b/res/drawable/photoeditor_effect_tint.png differ diff --git a/res/drawable/photoeditor_effect_vignette.png b/res/drawable/photoeditor_effect_vignette.png new file mode 100644 index 000000000..e5295639d Binary files /dev/null and b/res/drawable/photoeditor_effect_vignette.png differ diff --git a/res/drawable/photoeditor_exposure.png b/res/drawable/photoeditor_exposure.png new file mode 100644 index 000000000..b6e3566c0 Binary files /dev/null and b/res/drawable/photoeditor_exposure.png differ diff --git a/res/drawable/photoeditor_fix.png b/res/drawable/photoeditor_fix.png new file mode 100644 index 000000000..4b8f3b881 Binary files /dev/null and b/res/drawable/photoeditor_fix.png differ diff --git a/res/drawable/photoeditor_redo.png b/res/drawable/photoeditor_redo.png new file mode 100644 index 000000000..9daa01c34 Binary files /dev/null and b/res/drawable/photoeditor_redo.png differ diff --git a/res/drawable/photoeditor_scale_seekbar_color.9.png b/res/drawable/photoeditor_scale_seekbar_color.9.png new file mode 100644 index 000000000..d78ff9b3b Binary files /dev/null and b/res/drawable/photoeditor_scale_seekbar_color.9.png differ diff --git a/res/drawable/photoeditor_scale_seekbar_filllight.9.png b/res/drawable/photoeditor_scale_seekbar_filllight.9.png new file mode 100644 index 000000000..43acaf343 Binary files /dev/null and b/res/drawable/photoeditor_scale_seekbar_filllight.9.png differ diff --git a/res/drawable/photoeditor_scale_seekbar_generic.9.png b/res/drawable/photoeditor_scale_seekbar_generic.9.png new file mode 100644 index 000000000..3ee3cc7f0 Binary files /dev/null and b/res/drawable/photoeditor_scale_seekbar_generic.9.png differ diff --git a/res/drawable/photoeditor_scale_seekbar_highlight.9.png b/res/drawable/photoeditor_scale_seekbar_highlight.9.png new file mode 100644 index 000000000..70f54b800 Binary files /dev/null and b/res/drawable/photoeditor_scale_seekbar_highlight.9.png differ diff --git a/res/drawable/photoeditor_scale_seekbar_shadow.9.png b/res/drawable/photoeditor_scale_seekbar_shadow.9.png new file mode 100644 index 000000000..b17a78522 Binary files /dev/null and b/res/drawable/photoeditor_scale_seekbar_shadow.9.png differ diff --git a/res/drawable/photoeditor_seekbar_thumb.png b/res/drawable/photoeditor_seekbar_thumb.png new file mode 100644 index 000000000..0d452c16d Binary files /dev/null and b/res/drawable/photoeditor_seekbar_thumb.png differ diff --git a/res/drawable/photoeditor_toggle_button_background.xml b/res/drawable/photoeditor_toggle_button_background.xml new file mode 100644 index 000000000..81c39ca83 --- /dev/null +++ b/res/drawable/photoeditor_toggle_button_background.xml @@ -0,0 +1,24 @@ + + + + + + + + + + diff --git a/res/drawable/photoeditor_toggle_button_highlight.9.png b/res/drawable/photoeditor_toggle_button_highlight.9.png new file mode 100644 index 000000000..add582a25 Binary files /dev/null and b/res/drawable/photoeditor_toggle_button_highlight.9.png differ diff --git a/res/drawable/photoeditor_undo.png b/res/drawable/photoeditor_undo.png new file mode 100644 index 000000000..0a7e0d1b8 Binary files /dev/null and b/res/drawable/photoeditor_undo.png differ diff --git a/res/layout/photoeditor_color_seekbar.xml b/res/layout/photoeditor_color_seekbar.xml new file mode 100644 index 000000000..fb9386992 --- /dev/null +++ b/res/layout/photoeditor_color_seekbar.xml @@ -0,0 +1,24 @@ + + + + diff --git a/res/layout/photoeditor_crop_view.xml b/res/layout/photoeditor_crop_view.xml new file mode 100644 index 000000000..151e6a678 --- /dev/null +++ b/res/layout/photoeditor_crop_view.xml @@ -0,0 +1,20 @@ + + + + diff --git a/res/layout/photoeditor_doodle_view.xml b/res/layout/photoeditor_doodle_view.xml new file mode 100644 index 000000000..d8e08683c --- /dev/null +++ b/res/layout/photoeditor_doodle_view.xml @@ -0,0 +1,20 @@ + + + + diff --git a/res/layout/photoeditor_effect_tool_panel.xml b/res/layout/photoeditor_effect_tool_panel.xml new file mode 100644 index 000000000..7fd92571c --- /dev/null +++ b/res/layout/photoeditor_effect_tool_panel.xml @@ -0,0 +1,29 @@ + + + + + + + diff --git a/res/layout/photoeditor_effects_artistic.xml b/res/layout/photoeditor_effects_artistic.xml new file mode 100644 index 000000000..f5eb63a87 --- /dev/null +++ b/res/layout/photoeditor_effects_artistic.xml @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/layout/photoeditor_effects_color.xml b/res/layout/photoeditor_effects_color.xml new file mode 100644 index 000000000..c078dfaa2 --- /dev/null +++ b/res/layout/photoeditor_effects_color.xml @@ -0,0 +1,103 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/layout/photoeditor_effects_exposure.xml b/res/layout/photoeditor_effects_exposure.xml new file mode 100644 index 000000000..5a4fb2949 --- /dev/null +++ b/res/layout/photoeditor_effects_exposure.xml @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/layout/photoeditor_effects_fix.xml b/res/layout/photoeditor_effects_fix.xml new file mode 100644 index 000000000..b77ffd132 --- /dev/null +++ b/res/layout/photoeditor_effects_fix.xml @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/layout/photoeditor_effects_gallery.xml b/res/layout/photoeditor_effects_gallery.xml new file mode 100644 index 000000000..16a2366a0 --- /dev/null +++ b/res/layout/photoeditor_effects_gallery.xml @@ -0,0 +1,30 @@ + + + + + + + + diff --git a/res/layout/photoeditor_main.xml b/res/layout/photoeditor_main.xml new file mode 100644 index 000000000..dd7551ff6 --- /dev/null +++ b/res/layout/photoeditor_main.xml @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +