OSDN Git Service

Fix b/5403449.
authorYuli Huang <yuli@google.com>
Tue, 18 Oct 2011 04:42:50 +0000 (12:42 +0800)
committerYuli Huang <yuli@google.com>
Tue, 18 Oct 2011 05:10:10 +0000 (13:10 +0800)
commitb5c54b675f6216659b04904661e39dc1b84cb403
treed6f2bd57496a1d212a662e8022554aee70ee4bde
parentb289d441eb5af97ac8716479831b1a2c5fe2e878
Fix b/5403449.

1. Extract code that recreates/restores ActionBar as RestorableView, and
make both ActionBar and EffectsMenu extend RestorableView.
2. Fix effects-menu buttons too close to each other.
3. Remove effects-menu buttons' highlight animations to look more
responsive.

Change-Id: I68e5bdcde702e611ccced5e169852c0e58a949fc
13 files changed:
res/drawable/photoeditor_toggle_button_background.xml
res/layout/photoeditor_actionbar.xml
res/layout/photoeditor_effects_menu.xml [new file with mode: 0644]
res/layout/photoeditor_main.xml
res/values-sw320dp/photoeditor_dimens.xml
res/values-sw600dp/photoeditor_dimens.xml
res/values-sw800dp/photoeditor_dimens.xml
res/values/photoeditor_styles.xml
src/com/android/gallery3d/photoeditor/ActionBar.java
src/com/android/gallery3d/photoeditor/EffectsBar.java
src/com/android/gallery3d/photoeditor/EffectsMenu.java [new file with mode: 0644]
src/com/android/gallery3d/photoeditor/PhotoEditor.java
src/com/android/gallery3d/photoeditor/RestorableView.java [new file with mode: 0644]