From b03fe27d8392d190ea0dcc6d3661c117fe5e07d6 Mon Sep 17 00:00:00 2001 From: Hung-ying Tyan Date: Tue, 7 Dec 2010 11:40:46 +0800 Subject: Implement new visual design for Camera zoom control. And overlay zoom control readout on top of preview area. Bug: 3252827 Bug: 3252839 Change-Id: I2220a0784b94a7b80807bf7f4e29d039cb6e6f0f --- res/drawable-hdpi/button_zoom_in_focused_holo.png | Bin 0 -> 1948 bytes res/drawable-hdpi/button_zoom_in_holo.png | Bin 0 -> 2622 bytes .../button_zoom_in_longpressed_holo.png | Bin 0 -> 2871 bytes res/drawable-hdpi/button_zoom_in_pressed_holo.png | Bin 0 -> 2852 bytes res/drawable-hdpi/button_zoom_out_focused_holo.png | Bin 0 -> 1870 bytes res/drawable-hdpi/button_zoom_out_holo.png | Bin 0 -> 2567 bytes .../button_zoom_out_longpressed_holo.png | Bin 0 -> 2771 bytes res/drawable-hdpi/button_zoom_out_pressed_holo.png | Bin 0 -> 2755 bytes res/drawable-hdpi/zoompicker_down_normal.png | Bin 495 -> 0 bytes res/drawable-hdpi/zoompicker_down_pressed.png | Bin 590 -> 0 bytes res/drawable-hdpi/zoompicker_up_normal.png | Bin 887 -> 0 bytes res/drawable-hdpi/zoompicker_up_pressed.png | Bin 900 -> 0 bytes res/drawable-mdpi/button_zoom_in_holo.png | Bin 0 -> 2622 bytes .../button_zoom_in_longpressed_holo.png | Bin 0 -> 2871 bytes res/drawable-mdpi/button_zoom_in_pressed_holo.png | Bin 0 -> 2852 bytes res/drawable-mdpi/button_zoom_out_holo.png | Bin 0 -> 2567 bytes .../button_zoom_out_longpressed_holo.png | Bin 0 -> 2771 bytes res/drawable-mdpi/button_zoom_out_pressed_holo.png | Bin 0 -> 2755 bytes res/drawable-mdpi/zoompicker_down_normal.png | Bin 495 -> 0 bytes res/drawable-mdpi/zoompicker_down_pressed.png | Bin 590 -> 0 bytes res/drawable-mdpi/zoompicker_up_normal.png | Bin 887 -> 0 bytes res/drawable-mdpi/zoompicker_up_pressed.png | Bin 900 -> 0 bytes res/drawable-xlarge/btn_zoom_in.xml | 20 +++++++++++ res/drawable-xlarge/btn_zoom_out.xml | 20 +++++++++++ res/drawable/btn_zoom_picker_down.xml | 20 ----------- res/drawable/btn_zoom_picker_up.xml | 20 ----------- res/layout-xlarge/camera_control.xml | 8 ++--- res/layout-xlarge/preview_frame.xml | 15 ++++++++ res/layout-xlarge/zoom_picker.xml | 38 +++++++-------------- res/values/colors.xml | 1 + res/values/strings.xml | 2 ++ src/com/android/camera/ui/ZoomPicker.java | 30 +++++++++++----- 32 files changed, 96 insertions(+), 78 deletions(-) create mode 100644 res/drawable-hdpi/button_zoom_in_focused_holo.png create mode 100644 res/drawable-hdpi/button_zoom_in_holo.png create mode 100644 res/drawable-hdpi/button_zoom_in_longpressed_holo.png create mode 100644 res/drawable-hdpi/button_zoom_in_pressed_holo.png create mode 100644 res/drawable-hdpi/button_zoom_out_focused_holo.png create mode 100644 res/drawable-hdpi/button_zoom_out_holo.png create mode 100644 res/drawable-hdpi/button_zoom_out_longpressed_holo.png create mode 100644 res/drawable-hdpi/button_zoom_out_pressed_holo.png delete mode 100644 res/drawable-hdpi/zoompicker_down_normal.png delete mode 100644 res/drawable-hdpi/zoompicker_down_pressed.png delete mode 100644 res/drawable-hdpi/zoompicker_up_normal.png delete mode 100644 res/drawable-hdpi/zoompicker_up_pressed.png create mode 100644 res/drawable-mdpi/button_zoom_in_holo.png create mode 100644 res/drawable-mdpi/button_zoom_in_longpressed_holo.png create mode 100644 res/drawable-mdpi/button_zoom_in_pressed_holo.png create mode 100644 res/drawable-mdpi/button_zoom_out_holo.png create mode 100644 res/drawable-mdpi/button_zoom_out_longpressed_holo.png create mode 100644 res/drawable-mdpi/button_zoom_out_pressed_holo.png delete mode 100644 res/drawable-mdpi/zoompicker_down_normal.png delete mode 100644 res/drawable-mdpi/zoompicker_down_pressed.png delete mode 100644 res/drawable-mdpi/zoompicker_up_normal.png delete mode 100644 res/drawable-mdpi/zoompicker_up_pressed.png create mode 100644 res/drawable-xlarge/btn_zoom_in.xml create mode 100644 res/drawable-xlarge/btn_zoom_out.xml delete mode 100644 res/drawable/btn_zoom_picker_down.xml delete mode 100644 res/drawable/btn_zoom_picker_up.xml diff --git a/res/drawable-hdpi/button_zoom_in_focused_holo.png b/res/drawable-hdpi/button_zoom_in_focused_holo.png new file mode 100644 index 0000000..5787024 Binary files /dev/null and b/res/drawable-hdpi/button_zoom_in_focused_holo.png differ diff --git a/res/drawable-hdpi/button_zoom_in_holo.png b/res/drawable-hdpi/button_zoom_in_holo.png new file mode 100644 index 0000000..ef385e0 Binary files /dev/null and b/res/drawable-hdpi/button_zoom_in_holo.png differ diff --git a/res/drawable-hdpi/button_zoom_in_longpressed_holo.png b/res/drawable-hdpi/button_zoom_in_longpressed_holo.png new file mode 100644 index 0000000..d9f9f12 Binary files /dev/null and b/res/drawable-hdpi/button_zoom_in_longpressed_holo.png differ diff --git a/res/drawable-hdpi/button_zoom_in_pressed_holo.png b/res/drawable-hdpi/button_zoom_in_pressed_holo.png new file mode 100644 index 0000000..e75cb4a Binary files /dev/null and b/res/drawable-hdpi/button_zoom_in_pressed_holo.png differ diff --git a/res/drawable-hdpi/button_zoom_out_focused_holo.png b/res/drawable-hdpi/button_zoom_out_focused_holo.png new file mode 100644 index 0000000..b4659aa Binary files /dev/null and b/res/drawable-hdpi/button_zoom_out_focused_holo.png differ diff --git a/res/drawable-hdpi/button_zoom_out_holo.png b/res/drawable-hdpi/button_zoom_out_holo.png new file mode 100644 index 0000000..01f5615 Binary files /dev/null and b/res/drawable-hdpi/button_zoom_out_holo.png differ diff --git a/res/drawable-hdpi/button_zoom_out_longpressed_holo.png b/res/drawable-hdpi/button_zoom_out_longpressed_holo.png new file mode 100644 index 0000000..d2a3e59 Binary files /dev/null and b/res/drawable-hdpi/button_zoom_out_longpressed_holo.png differ diff --git a/res/drawable-hdpi/button_zoom_out_pressed_holo.png b/res/drawable-hdpi/button_zoom_out_pressed_holo.png new file mode 100644 index 0000000..4a032a6 Binary files /dev/null and b/res/drawable-hdpi/button_zoom_out_pressed_holo.png differ diff --git a/res/drawable-hdpi/zoompicker_down_normal.png b/res/drawable-hdpi/zoompicker_down_normal.png deleted file mode 100644 index d1d5ce0..0000000 Binary files a/res/drawable-hdpi/zoompicker_down_normal.png and /dev/null differ diff --git a/res/drawable-hdpi/zoompicker_down_pressed.png b/res/drawable-hdpi/zoompicker_down_pressed.png deleted file mode 100644 index 088d287..0000000 Binary files a/res/drawable-hdpi/zoompicker_down_pressed.png and /dev/null differ diff --git a/res/drawable-hdpi/zoompicker_up_normal.png b/res/drawable-hdpi/zoompicker_up_normal.png deleted file mode 100644 index 9cded59..0000000 Binary files a/res/drawable-hdpi/zoompicker_up_normal.png and /dev/null differ diff --git a/res/drawable-hdpi/zoompicker_up_pressed.png b/res/drawable-hdpi/zoompicker_up_pressed.png deleted file mode 100644 index 320bcaf..0000000 Binary files a/res/drawable-hdpi/zoompicker_up_pressed.png and /dev/null differ diff --git a/res/drawable-mdpi/button_zoom_in_holo.png b/res/drawable-mdpi/button_zoom_in_holo.png new file mode 100644 index 0000000..ef385e0 Binary files /dev/null and b/res/drawable-mdpi/button_zoom_in_holo.png differ diff --git a/res/drawable-mdpi/button_zoom_in_longpressed_holo.png b/res/drawable-mdpi/button_zoom_in_longpressed_holo.png new file mode 100644 index 0000000..d9f9f12 Binary files /dev/null and b/res/drawable-mdpi/button_zoom_in_longpressed_holo.png differ diff --git a/res/drawable-mdpi/button_zoom_in_pressed_holo.png b/res/drawable-mdpi/button_zoom_in_pressed_holo.png new file mode 100644 index 0000000..e75cb4a Binary files /dev/null and b/res/drawable-mdpi/button_zoom_in_pressed_holo.png differ diff --git a/res/drawable-mdpi/button_zoom_out_holo.png b/res/drawable-mdpi/button_zoom_out_holo.png new file mode 100644 index 0000000..01f5615 Binary files /dev/null and b/res/drawable-mdpi/button_zoom_out_holo.png differ diff --git a/res/drawable-mdpi/button_zoom_out_longpressed_holo.png b/res/drawable-mdpi/button_zoom_out_longpressed_holo.png new file mode 100644 index 0000000..d2a3e59 Binary files /dev/null and b/res/drawable-mdpi/button_zoom_out_longpressed_holo.png differ diff --git a/res/drawable-mdpi/button_zoom_out_pressed_holo.png b/res/drawable-mdpi/button_zoom_out_pressed_holo.png new file mode 100644 index 0000000..4a032a6 Binary files /dev/null and b/res/drawable-mdpi/button_zoom_out_pressed_holo.png differ diff --git a/res/drawable-mdpi/zoompicker_down_normal.png b/res/drawable-mdpi/zoompicker_down_normal.png deleted file mode 100644 index d1d5ce0..0000000 Binary files a/res/drawable-mdpi/zoompicker_down_normal.png and /dev/null differ diff --git a/res/drawable-mdpi/zoompicker_down_pressed.png b/res/drawable-mdpi/zoompicker_down_pressed.png deleted file mode 100644 index 088d287..0000000 Binary files a/res/drawable-mdpi/zoompicker_down_pressed.png and /dev/null differ diff --git a/res/drawable-mdpi/zoompicker_up_normal.png b/res/drawable-mdpi/zoompicker_up_normal.png deleted file mode 100644 index 9cded59..0000000 Binary files a/res/drawable-mdpi/zoompicker_up_normal.png and /dev/null differ diff --git a/res/drawable-mdpi/zoompicker_up_pressed.png b/res/drawable-mdpi/zoompicker_up_pressed.png deleted file mode 100644 index 320bcaf..0000000 Binary files a/res/drawable-mdpi/zoompicker_up_pressed.png and /dev/null differ diff --git a/res/drawable-xlarge/btn_zoom_in.xml b/res/drawable-xlarge/btn_zoom_in.xml new file mode 100644 index 0000000..1ae7aeb --- /dev/null +++ b/res/drawable-xlarge/btn_zoom_in.xml @@ -0,0 +1,20 @@ + + + + + + + diff --git a/res/drawable-xlarge/btn_zoom_out.xml b/res/drawable-xlarge/btn_zoom_out.xml new file mode 100644 index 0000000..92370c1 --- /dev/null +++ b/res/drawable-xlarge/btn_zoom_out.xml @@ -0,0 +1,20 @@ + + + + + + + diff --git a/res/drawable/btn_zoom_picker_down.xml b/res/drawable/btn_zoom_picker_down.xml deleted file mode 100644 index 38f1270..0000000 --- a/res/drawable/btn_zoom_picker_down.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - diff --git a/res/drawable/btn_zoom_picker_up.xml b/res/drawable/btn_zoom_picker_up.xml deleted file mode 100644 index 0a2249b..0000000 --- a/res/drawable/btn_zoom_picker_up.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - diff --git a/res/layout-xlarge/camera_control.xml b/res/layout-xlarge/camera_control.xml index 82757c6..4507fc4 100644 --- a/res/layout-xlarge/camera_control.xml +++ b/res/layout-xlarge/camera_control.xml @@ -30,10 +30,10 @@ android:layout="@layout/zoom_picker" android:layout_alignParentTop="true" android:layout_alignParentRight="true" - android:layout_width="45dp" - android:layout_height="150dp" - android:layout_marginTop="40dp" - android:layout_marginRight="160dp"/> + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="20dp" + android:layout_marginRight="20dp"/> + - - - -