OSDN Git Service

Remove app background and reduce 1 layer of overdraw
authorAlan Newberger <alann@google.com>
Tue, 10 Feb 2015 04:53:03 +0000 (20:53 -0800)
committerAlan Newberger <alann@google.com>
Tue, 10 Feb 2015 18:18:59 +0000 (10:18 -0800)
commitd7064a6c6f1eb0748de8f56b8a1e006d60ab0f7e
tree2ef0b7986142c467caf0d76577004142ae18e652
parentb350c0beb091086526c6ca8985a1beebc0d7c74d
Remove app background and reduce 1 layer of overdraw

Set the app background to null. This saves one full layer of
overdraw in the filmstrip. The capture UI is more dependent
on the window background, both for gaps in the preview and
screen edges, and behind the shutter button when it is
made transparent when the mode list is open. The preview
is a large portion of screen and to remove one overdraw,
we instead fill gaps around the preview with a
MarginDrawable overlay. This CL leaves a background behind
the shutter button when opaque, to allow for it becoming
transparent during mode list view.

Bug: 18596159
Change-Id: I2a9083a2413944c6244e2f0528164e8852ae3d8e
src/com/android/camera/CameraActivity.java
src/com/android/camera/app/CameraAppUI.java
src/com/android/camera/ui/BottomBar.java
src/com/android/camera/ui/MarginDrawable.java [new file with mode: 0644]