From da705aa1c8cbaaba105d9bc7799aef95c416a459 Mon Sep 17 00:00:00 2001 From: Chih-Chung Chang Date: Mon, 31 Oct 2011 18:50:52 +0800 Subject: Fix 5521540: UI Tweaks. - draw fan-shaped semi-transparent area on the indicator wheel. - change selected indicator color - remove video mode black border - set activity background to black - update assets - don't gray out unselected modes in mode picker (tablet) - set ok/cancel icons to 32dp, font to 12sp bold Change-Id: Iedc43dca29d1943965caf2d36cce176d8e509547 --- res/drawable-hdpi/ic_gallery_play.png | Bin 4088 -> 6425 bytes res/drawable-mdpi/ic_gallery_play.png | Bin 2640 -> 3975 bytes .../ic_recording_indicator.png | Bin 722 -> 0 bytes res/drawable-xhdpi/ic_gallery_play.png | Bin 5711 -> 9484 bytes res/drawable/border_preview.xml | 21 ------------- res/layout-sw600dp/mode_picker.xml | 3 ++ res/layout-sw600dp/preview_frame_video.xml | 8 +++-- res/layout/preview_frame_video.xml | 12 ++++--- res/values-sw600dp/styles.xml | 8 +++-- res/values/colors.xml | 3 +- res/values/strings.xml | 2 +- res/values/styles.xml | 3 ++ src/com/android/camera/ModePicker.java | 9 ++++-- src/com/android/camera/PreviewFrameLayout.java | 7 +++-- .../android/camera/ui/IndicatorControlWheel.java | 35 ++++++++++++++++----- 15 files changed, 66 insertions(+), 45 deletions(-) delete mode 100644 res/drawable-sw600dp-mdpi/ic_recording_indicator.png delete mode 100644 res/drawable/border_preview.xml diff --git a/res/drawable-hdpi/ic_gallery_play.png b/res/drawable-hdpi/ic_gallery_play.png index 2ba9514..44e0c4e 100644 Binary files a/res/drawable-hdpi/ic_gallery_play.png and b/res/drawable-hdpi/ic_gallery_play.png differ diff --git a/res/drawable-mdpi/ic_gallery_play.png b/res/drawable-mdpi/ic_gallery_play.png index 38010cf..19c4a79 100644 Binary files a/res/drawable-mdpi/ic_gallery_play.png and b/res/drawable-mdpi/ic_gallery_play.png differ diff --git a/res/drawable-sw600dp-mdpi/ic_recording_indicator.png b/res/drawable-sw600dp-mdpi/ic_recording_indicator.png deleted file mode 100644 index 9d168f1..0000000 Binary files a/res/drawable-sw600dp-mdpi/ic_recording_indicator.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_gallery_play.png b/res/drawable-xhdpi/ic_gallery_play.png index 45c586b..f677b26 100644 Binary files a/res/drawable-xhdpi/ic_gallery_play.png and b/res/drawable-xhdpi/ic_gallery_play.png differ diff --git a/res/drawable/border_preview.xml b/res/drawable/border_preview.xml deleted file mode 100644 index 5835e2f..0000000 --- a/res/drawable/border_preview.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - diff --git a/res/layout-sw600dp/mode_picker.xml b/res/layout-sw600dp/mode_picker.xml index a77485d..cd562c8 100644 --- a/res/layout-sw600dp/mode_picker.xml +++ b/res/layout-sw600dp/mode_picker.xml @@ -38,18 +38,21 @@ android:layout_height="wrap_content" android:layout_weight="1" android:scaleType="center" + android:background="@drawable/bg_pressed" android:src="@drawable/ic_switch_camera_holo_light" /> diff --git a/res/layout-sw600dp/preview_frame_video.xml b/res/layout-sw600dp/preview_frame_video.xml index 4e59c90..aab1ee1 100644 --- a/res/layout-sw600dp/preview_frame_video.xml +++ b/res/layout-sw600dp/preview_frame_video.xml @@ -22,11 +22,15 @@ + android:layout_centerInParent="true"> + diff --git a/res/layout/preview_frame_video.xml b/res/layout/preview_frame_video.xml index 992eb46..43d1b5a 100644 --- a/res/layout/preview_frame_video.xml +++ b/res/layout/preview_frame_video.xml @@ -22,11 +22,15 @@ + android:layout_centerInParent="true"> + android:layout_width="match_parent" + android:layout_height="match_parent" /> + diff --git a/res/values-sw600dp/styles.xml b/res/values-sw600dp/styles.xml index ed3f5da..a8f4d7b 100644 --- a/res/values-sw600dp/styles.xml +++ b/res/values-sw600dp/styles.xml @@ -30,8 +30,8 @@ @drawable/bg_pressed