From 427a915be4bcc84fa1c32d9e9e1b7473c522f732 Mon Sep 17 00:00:00 2001 From: Senpo Hu Date: Wed, 19 Nov 2014 17:11:46 -0800 Subject: New capture indicator design for Haleakala. * Introduce RoundedThumbnailView and retire PeekView. * Rename BottomBarModeOptionsWrapper to StickyBottomCaptureLayout. * Verified on K and L devices. Thumbnail cropping: * 100% width and vertically centered for portrait. * 100% height and horizontally centered for landscape. General behavior spec: * Hide the capture indicatorby fading out using fast_out_linear_in (150ms): 1) User open filmstrip. 2) User switch module. 3) User switch front/back camera. 4) User close app. Behavior spec for non-photo modules: * Photosphere is stripped of UI so there is no need to show capture indicator. When a photo sphere is taken (and user is in another mode), the preview frame used in filmstrip is used in the capture indicator. * Video: show in viewfinder prior or after capture. Hide during capture. When a video is taken, the preview frame used in filmstrip is used in the capture indicator. * Panorama: Show in viewfinder prior or after capture. Hide during capture. When a panorama is taken, the preview frame used in filmstrip is used in the capture indicator. * Lens blue: Show in viewfinder prior or after capture. Hide during capture. When a lens blur is taken, the preview frame used in filmstrip is used in the capture indicator. Visual spec: A 12dp spacing between mode option overlay and thumbnail. 1. A circular mask that excludes the corners of the preview image. 2. A solid white layer that sits on top of the preview and is also masked by (1). 3. The preview image. 4. A 'ripple' which is just a white circular stroke. Animation spec: (1) only the scale animates, from 50%(24dp) to 114%(54dp) in 200ms then falls back to 100%(48dp) in 200ms. Both steps use the same easing: fast_out_slow_in. (2) opacity, from 50% to 0% over 150ms, easing is exponential. (3) doesn't animate. (4) starts animating after 100ms, when (1) is at its peak radius and all animations take 200ms, using linear_out_slow in. Opacity goes from 40% to 0%, radius goes from 40dp to 70dp, stroke width goes from 5dp to 1dp. Bug: 18317565 Change-Id: Ib8d4f065b98fc3b9b0b627633232ce8cee96eb61 --- res/layout/activity_main.xml | 6 ----- res/layout/camera.xml | 2 +- res/layout/mode_options_bottombar.xml | 37 ------------------------- res/layout/sticky_bottom_capture_layout.xml | 42 +++++++++++++++++++++++++++++ 4 files changed, 43 insertions(+), 44 deletions(-) delete mode 100644 res/layout/mode_options_bottombar.xml create mode 100644 res/layout/sticky_bottom_capture_layout.xml (limited to 'res/layout') diff --git a/res/layout/activity_main.xml b/res/layout/activity_main.xml index ea1b56407..c0eedab43 100644 --- a/res/layout/activity_main.xml +++ b/res/layout/activity_main.xml @@ -23,12 +23,6 @@ android:background="@null"> - - - + - - - - - - - - - - - - - - diff --git a/res/layout/sticky_bottom_capture_layout.xml b/res/layout/sticky_bottom_capture_layout.xml new file mode 100644 index 000000000..6d98c30f3 --- /dev/null +++ b/res/layout/sticky_bottom_capture_layout.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + -- cgit v1.2.3