OSDN Git Service

New mode drawer.
authorDoris Liu <tianliu@google.com>
Wed, 5 Feb 2014 00:57:55 +0000 (16:57 -0800)
committerDoris Liu <tianliu@google.com>
Sat, 8 Feb 2014 02:29:20 +0000 (18:29 -0800)
commit213a4a086b54904cee543adf60b16fc1a61efe38
tree93b76ec9db4942e6b60e4c385a2728d3d6dabf6c
parente69b88893922350461c3a30586aa9194783ff612
New mode drawer.

-Changed the entire look of the mode drawer by using a live preview
 as background, and use circle icons rather than block shaped icons
-Fade in the blurred preview frame during mode switch
-Add highlighted and selected states to mode icons
-Center the mode drawer in preview rather than whole screen
-Swapped mode order in the drawer

TODO:
-Add settings access point
-Refine swipe in/out behavior of the drawer

Change-Id: Ibab0fe960bcfbb9635ca7f45d50178cb1ef2941f
15 files changed:
res/drawable/mode_icon_background.xml [new file with mode: 0644]
res/drawable/mode_icon_highlight.xml [new file with mode: 0644]
res/layout/mode_list_layout.xml
res/layout/mode_selector.xml
res/values/arrays.xml
res/values/colors.xml
res/values/dimens.xml
src/com/android/camera/CameraActivity.java
src/com/android/camera/TextureViewHelper.java
src/com/android/camera/app/CameraAppUI.java
src/com/android/camera/ui/ModeIconView.java [new file with mode: 0644]
src/com/android/camera/ui/ModeListView.java
src/com/android/camera/ui/ModeSelectorItem.java
src/com/android/camera/ui/ModeTransitionView.java
src/com/android/camera/util/CameraUtil.java