From b39e01c54b0d46b8a005e48e88537bc875b4977b Mon Sep 17 00:00:00 2001 From: weijiew Date: Fri, 2 Dec 2016 19:56:28 +0800 Subject: SnapdragonCamera: Show label and dialog when switch to new scene mode Show label and instructional dialog when switch to new scene mode Change-Id: I75becaa9bb898ca9ef68c94b1195069131745f14 CRs-Fixed: 1091210 --- res/drawable-hdpi/ic_scene_mode_black_auto.png | Bin 0 -> 15909 bytes .../ic_scene_mode_black_backlight.png | Bin 0 -> 16619 bytes res/drawable-hdpi/ic_scene_mode_black_beach.png | Bin 0 -> 16872 bytes .../ic_scene_mode_black_best_photo.png | Bin 0 -> 16748 bytes .../ic_scene_mode_black_blur_buster.png | Bin 0 -> 16951 bytes .../ic_scene_mode_black_candlelight.png | Bin 0 -> 16162 bytes .../ic_scene_mode_black_chroma_flash.png | Bin 0 -> 16378 bytes .../ic_scene_mode_black_dual_camera.png | Bin 0 -> 17729 bytes res/drawable-hdpi/ic_scene_mode_black_flowers.png | Bin 0 -> 16751 bytes res/drawable-hdpi/ic_scene_mode_black_hdr.png | Bin 0 -> 16507 bytes .../ic_scene_mode_black_landscape.png | Bin 0 -> 15962 bytes res/drawable-hdpi/ic_scene_mode_black_night.png | Bin 0 -> 16104 bytes res/drawable-hdpi/ic_scene_mode_black_optizoom.png | Bin 0 -> 16078 bytes res/drawable-hdpi/ic_scene_mode_black_panorama.png | Bin 0 -> 16353 bytes res/drawable-hdpi/ic_scene_mode_black_portrait.png | Bin 0 -> 16157 bytes res/drawable-hdpi/ic_scene_mode_black_pro_mode.png | Bin 0 -> 15799 bytes .../ic_scene_mode_black_sharp_photo.png | Bin 0 -> 16431 bytes res/drawable-hdpi/ic_scene_mode_black_snow.png | Bin 0 -> 16669 bytes res/drawable-hdpi/ic_scene_mode_black_sports.png | Bin 0 -> 16644 bytes res/drawable-hdpi/ic_scene_mode_black_sunset.png | Bin 0 -> 16147 bytes .../ic_scene_mode_black_time_lapse.png | Bin 0 -> 15712 bytes .../ic_scene_mode_black_tracking_focus.png | Bin 0 -> 16118 bytes res/drawable-hdpi/ic_scene_mode_black_ubifocus.png | Bin 0 -> 16780 bytes res/layout/capture_module.xml | 3 + res/layout/pano_capture_module.xml | 4 + res/layout/scene_mode_instructional.xml | 102 +++++++++++++ res/layout/scene_mode_label.xml | 50 ++++++ res/values/camera2arrays.xml | 53 +++++++ res/values/qcomstrings.xml | 17 +++ res/values/styles.xml | 14 ++ res/xml/capture_preferences.xml | 8 + src/com/android/camera/CaptureUI.java | 167 ++++++++++++++++++++- src/com/android/camera/ComboPreferences.java | 2 +- src/com/android/camera/PanoCaptureModule.java | 4 +- src/com/android/camera/PanoCaptureUI.java | 132 ++++++++++++++++ src/com/android/camera/SettingsManager.java | 11 ++ 36 files changed, 562 insertions(+), 5 deletions(-) create mode 100644 res/drawable-hdpi/ic_scene_mode_black_auto.png create mode 100644 res/drawable-hdpi/ic_scene_mode_black_backlight.png create mode 100644 res/drawable-hdpi/ic_scene_mode_black_beach.png create mode 100644 res/drawable-hdpi/ic_scene_mode_black_best_photo.png create mode 100644 res/drawable-hdpi/ic_scene_mode_black_blur_buster.png create mode 100644 res/drawable-hdpi/ic_scene_mode_black_candlelight.png create mode 100644 res/drawable-hdpi/ic_scene_mode_black_chroma_flash.png create mode 100644 res/drawable-hdpi/ic_scene_mode_black_dual_camera.png create mode 100644 res/drawable-hdpi/ic_scene_mode_black_flowers.png create mode 100644 res/drawable-hdpi/ic_scene_mode_black_hdr.png create mode 100644 res/drawable-hdpi/ic_scene_mode_black_landscape.png create mode 100644 res/drawable-hdpi/ic_scene_mode_black_night.png create mode 100644 res/drawable-hdpi/ic_scene_mode_black_optizoom.png create mode 100644 res/drawable-hdpi/ic_scene_mode_black_panorama.png create mode 100644 res/drawable-hdpi/ic_scene_mode_black_portrait.png create mode 100644 res/drawable-hdpi/ic_scene_mode_black_pro_mode.png create mode 100644 res/drawable-hdpi/ic_scene_mode_black_sharp_photo.png create mode 100644 res/drawable-hdpi/ic_scene_mode_black_snow.png create mode 100644 res/drawable-hdpi/ic_scene_mode_black_sports.png create mode 100644 res/drawable-hdpi/ic_scene_mode_black_sunset.png create mode 100644 res/drawable-hdpi/ic_scene_mode_black_time_lapse.png create mode 100644 res/drawable-hdpi/ic_scene_mode_black_tracking_focus.png create mode 100644 res/drawable-hdpi/ic_scene_mode_black_ubifocus.png create mode 100644 res/layout/scene_mode_instructional.xml create mode 100644 res/layout/scene_mode_label.xml mode change 100755 => 100644 src/com/android/camera/CaptureUI.java diff --git a/res/drawable-hdpi/ic_scene_mode_black_auto.png b/res/drawable-hdpi/ic_scene_mode_black_auto.png new file mode 100644 index 000000000..3f68e8e47 Binary files /dev/null and b/res/drawable-hdpi/ic_scene_mode_black_auto.png differ diff --git a/res/drawable-hdpi/ic_scene_mode_black_backlight.png b/res/drawable-hdpi/ic_scene_mode_black_backlight.png new file mode 100644 index 000000000..a70502f79 Binary files /dev/null and b/res/drawable-hdpi/ic_scene_mode_black_backlight.png differ diff --git a/res/drawable-hdpi/ic_scene_mode_black_beach.png b/res/drawable-hdpi/ic_scene_mode_black_beach.png new file mode 100644 index 000000000..d66a5ff23 Binary files /dev/null and b/res/drawable-hdpi/ic_scene_mode_black_beach.png differ diff --git a/res/drawable-hdpi/ic_scene_mode_black_best_photo.png b/res/drawable-hdpi/ic_scene_mode_black_best_photo.png new file mode 100644 index 000000000..5ddd1aac2 Binary files /dev/null and b/res/drawable-hdpi/ic_scene_mode_black_best_photo.png differ diff --git a/res/drawable-hdpi/ic_scene_mode_black_blur_buster.png b/res/drawable-hdpi/ic_scene_mode_black_blur_buster.png new file mode 100644 index 000000000..a5b930f5e Binary files /dev/null and b/res/drawable-hdpi/ic_scene_mode_black_blur_buster.png differ diff --git a/res/drawable-hdpi/ic_scene_mode_black_candlelight.png b/res/drawable-hdpi/ic_scene_mode_black_candlelight.png new file mode 100644 index 000000000..cc8606e09 Binary files /dev/null and b/res/drawable-hdpi/ic_scene_mode_black_candlelight.png differ diff --git a/res/drawable-hdpi/ic_scene_mode_black_chroma_flash.png b/res/drawable-hdpi/ic_scene_mode_black_chroma_flash.png new file mode 100644 index 000000000..9c8c1108e Binary files /dev/null and b/res/drawable-hdpi/ic_scene_mode_black_chroma_flash.png differ diff --git a/res/drawable-hdpi/ic_scene_mode_black_dual_camera.png b/res/drawable-hdpi/ic_scene_mode_black_dual_camera.png new file mode 100644 index 000000000..16b803601 Binary files /dev/null and b/res/drawable-hdpi/ic_scene_mode_black_dual_camera.png differ diff --git a/res/drawable-hdpi/ic_scene_mode_black_flowers.png b/res/drawable-hdpi/ic_scene_mode_black_flowers.png new file mode 100644 index 000000000..527329e75 Binary files /dev/null and b/res/drawable-hdpi/ic_scene_mode_black_flowers.png differ diff --git a/res/drawable-hdpi/ic_scene_mode_black_hdr.png b/res/drawable-hdpi/ic_scene_mode_black_hdr.png new file mode 100644 index 000000000..3baa45485 Binary files /dev/null and b/res/drawable-hdpi/ic_scene_mode_black_hdr.png differ diff --git a/res/drawable-hdpi/ic_scene_mode_black_landscape.png b/res/drawable-hdpi/ic_scene_mode_black_landscape.png new file mode 100644 index 000000000..45a247e8d Binary files /dev/null and b/res/drawable-hdpi/ic_scene_mode_black_landscape.png differ diff --git a/res/drawable-hdpi/ic_scene_mode_black_night.png b/res/drawable-hdpi/ic_scene_mode_black_night.png new file mode 100644 index 000000000..6cf2ce8eb Binary files /dev/null and b/res/drawable-hdpi/ic_scene_mode_black_night.png differ diff --git a/res/drawable-hdpi/ic_scene_mode_black_optizoom.png b/res/drawable-hdpi/ic_scene_mode_black_optizoom.png new file mode 100644 index 000000000..331705738 Binary files /dev/null and b/res/drawable-hdpi/ic_scene_mode_black_optizoom.png differ diff --git a/res/drawable-hdpi/ic_scene_mode_black_panorama.png b/res/drawable-hdpi/ic_scene_mode_black_panorama.png new file mode 100644 index 000000000..38c4a1b39 Binary files /dev/null and b/res/drawable-hdpi/ic_scene_mode_black_panorama.png differ diff --git a/res/drawable-hdpi/ic_scene_mode_black_portrait.png b/res/drawable-hdpi/ic_scene_mode_black_portrait.png new file mode 100644 index 000000000..564e3da51 Binary files /dev/null and b/res/drawable-hdpi/ic_scene_mode_black_portrait.png differ diff --git a/res/drawable-hdpi/ic_scene_mode_black_pro_mode.png b/res/drawable-hdpi/ic_scene_mode_black_pro_mode.png new file mode 100644 index 000000000..bb9cd76ac Binary files /dev/null and b/res/drawable-hdpi/ic_scene_mode_black_pro_mode.png differ diff --git a/res/drawable-hdpi/ic_scene_mode_black_sharp_photo.png b/res/drawable-hdpi/ic_scene_mode_black_sharp_photo.png new file mode 100644 index 000000000..a475cc724 Binary files /dev/null and b/res/drawable-hdpi/ic_scene_mode_black_sharp_photo.png differ diff --git a/res/drawable-hdpi/ic_scene_mode_black_snow.png b/res/drawable-hdpi/ic_scene_mode_black_snow.png new file mode 100644 index 000000000..2ac492c08 Binary files /dev/null and b/res/drawable-hdpi/ic_scene_mode_black_snow.png differ diff --git a/res/drawable-hdpi/ic_scene_mode_black_sports.png b/res/drawable-hdpi/ic_scene_mode_black_sports.png new file mode 100644 index 000000000..932be9821 Binary files /dev/null and b/res/drawable-hdpi/ic_scene_mode_black_sports.png differ diff --git a/res/drawable-hdpi/ic_scene_mode_black_sunset.png b/res/drawable-hdpi/ic_scene_mode_black_sunset.png new file mode 100644 index 000000000..68b653527 Binary files /dev/null and b/res/drawable-hdpi/ic_scene_mode_black_sunset.png differ diff --git a/res/drawable-hdpi/ic_scene_mode_black_time_lapse.png b/res/drawable-hdpi/ic_scene_mode_black_time_lapse.png new file mode 100644 index 000000000..868e51d3d Binary files /dev/null and b/res/drawable-hdpi/ic_scene_mode_black_time_lapse.png differ diff --git a/res/drawable-hdpi/ic_scene_mode_black_tracking_focus.png b/res/drawable-hdpi/ic_scene_mode_black_tracking_focus.png new file mode 100644 index 000000000..e86a330c2 Binary files /dev/null and b/res/drawable-hdpi/ic_scene_mode_black_tracking_focus.png differ diff --git a/res/drawable-hdpi/ic_scene_mode_black_ubifocus.png b/res/drawable-hdpi/ic_scene_mode_black_ubifocus.png new file mode 100644 index 000000000..eb174e728 Binary files /dev/null and b/res/drawable-hdpi/ic_scene_mode_black_ubifocus.png differ diff --git a/res/layout/capture_module.xml b/res/layout/capture_module.xml index fc05fd0ca..affb6b081 100644 --- a/res/layout/capture_module.xml +++ b/res/layout/capture_module.xml @@ -92,6 +92,9 @@ + + + + + + + + + + + + + + + + + + + + +