From 36cfd9c72b8ed4ddce7625cc01641f2235bb473c Mon Sep 17 00:00:00 2001 From: Likai Ding Date: Wed, 27 May 2015 15:59:04 +0800 Subject: SnapdragonCamera: implement optizoom and chromaflash UI add scene mode for optizoom and preference entry for chromaflash Change-Id: I859a42e3273d340a7dda7e24c6cb2e08ddb0f7bf --- res/drawable-hdpi/ic_scene_mode_optizoom.png | Bin 0 -> 4076 bytes res/drawable-hdpi/ic_settings_chromaflash.png | Bin 0 -> 3041 bytes res/drawable-xhdpi/ic_scene_mode_optizoom.png | Bin 0 -> 5520 bytes res/drawable-xhdpi/ic_settings_chromaflash.png | Bin 0 -> 4055 bytes res/drawable-xxhdpi/ic_scene_mode_optizoom.png | Bin 0 -> 8137 bytes res/drawable-xxhdpi/ic_settings_chromaflash.png | Bin 0 -> 5787 bytes res/values/arrays.xml | 13 +++++++++++++ res/values/strings.xml | 1 + res/xml/camera_preferences.xml | 7 +++++++ 9 files changed, 21 insertions(+) create mode 100644 res/drawable-hdpi/ic_scene_mode_optizoom.png create mode 100644 res/drawable-hdpi/ic_settings_chromaflash.png create mode 100644 res/drawable-xhdpi/ic_scene_mode_optizoom.png create mode 100644 res/drawable-xhdpi/ic_settings_chromaflash.png create mode 100644 res/drawable-xxhdpi/ic_scene_mode_optizoom.png create mode 100644 res/drawable-xxhdpi/ic_settings_chromaflash.png (limited to 'res') diff --git a/res/drawable-hdpi/ic_scene_mode_optizoom.png b/res/drawable-hdpi/ic_scene_mode_optizoom.png new file mode 100644 index 000000000..bdf3d634a Binary files /dev/null and b/res/drawable-hdpi/ic_scene_mode_optizoom.png differ diff --git a/res/drawable-hdpi/ic_settings_chromaflash.png b/res/drawable-hdpi/ic_settings_chromaflash.png new file mode 100644 index 000000000..a58bc00bf Binary files /dev/null and b/res/drawable-hdpi/ic_settings_chromaflash.png differ diff --git a/res/drawable-xhdpi/ic_scene_mode_optizoom.png b/res/drawable-xhdpi/ic_scene_mode_optizoom.png new file mode 100644 index 000000000..8a4fc3614 Binary files /dev/null and b/res/drawable-xhdpi/ic_scene_mode_optizoom.png differ diff --git a/res/drawable-xhdpi/ic_settings_chromaflash.png b/res/drawable-xhdpi/ic_settings_chromaflash.png new file mode 100644 index 000000000..b21a5a086 Binary files /dev/null and b/res/drawable-xhdpi/ic_settings_chromaflash.png differ diff --git a/res/drawable-xxhdpi/ic_scene_mode_optizoom.png b/res/drawable-xxhdpi/ic_scene_mode_optizoom.png new file mode 100644 index 000000000..e41b3ac23 Binary files /dev/null and b/res/drawable-xxhdpi/ic_scene_mode_optizoom.png differ diff --git a/res/drawable-xxhdpi/ic_settings_chromaflash.png b/res/drawable-xxhdpi/ic_settings_chromaflash.png new file mode 100644 index 000000000..d46fc49c6 Binary files /dev/null and b/res/drawable-xxhdpi/ic_settings_chromaflash.png differ diff --git a/res/values/arrays.xml b/res/values/arrays.xml index 96234eda8..12eaeec81 100644 --- a/res/values/arrays.xml +++ b/res/values/arrays.xml @@ -394,11 +394,22 @@ @drawable/ic_indicator_wb_cloudy + + @string/setting_off + @string/setting_on + + + + @string/pref_camera_advanced_feature_value_chromaflash_off + @string/pref_camera_advanced_feature_value_chromaflash_on + + @string/pref_camera_scenemode_entry_auto @string/pref_camera_scenemode_entry_hdr @string/pref_camera_scenemode_entry_refocus + @string/pref_camera_scenemode_entry_optizoom @string/pref_camera_scenemode_entry_portrait @string/pref_camera_scenemode_entry_landscape @string/pref_camera_scenemode_entry_sports @@ -415,6 +426,7 @@ @drawable/ic_scene_mode_auto @drawable/ic_scene_mode_hdr @drawable/ic_scene_mode_refocus + @drawable/ic_scene_mode_optizoom @drawable/ic_scene_mode_portrait @drawable/ic_scene_mode_landscape @drawable/ic_scene_mode_sports @@ -447,6 +459,7 @@ auto hdr @string/pref_camera_advanced_feature_value_refocus_on + @string/pref_camera_advanced_feature_value_optizoom_on portrait landscape sports diff --git a/res/values/strings.xml b/res/values/strings.xml index 6959a4253..4ead3ba40 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -398,6 +398,7 @@ Party Macro+ + Opti-Zoom NONE diff --git a/res/xml/camera_preferences.xml b/res/xml/camera_preferences.xml index 6fc88a35f..caf2a93d7 100644 --- a/res/xml/camera_preferences.xml +++ b/res/xml/camera_preferences.xml @@ -50,6 +50,13 @@ camera:entries="@array/pref_camera_whitebalance_entries" camera:entryValues="@array/pref_camera_whitebalance_entryvalues" camera:labelList="@array/pref_camera_whitebalance_labels" /> +