summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorYuli Huang <yuli@google.com>2012-02-09 15:21:40 +0800
committerYuli Huang <yuli@google.com>2012-02-09 15:21:40 +0800
commite0f1afb886c47cbe222b1c16c86b7c3bd5742783 (patch)
tree61143e52fbd5294af22fcc79465c1f9fb02c0513 /res/layout
parent499745c985fb7f6ac5226e830d2ca4d75d3afff9 (diff)
downloadandroid_packages_apps_Snap-e0f1afb886c47cbe222b1c16c86b7c3bd5742783.tar.gz
android_packages_apps_Snap-e0f1afb886c47cbe222b1c16c86b7c3bd5742783.tar.bz2
android_packages_apps_Snap-e0f1afb886c47cbe222b1c16c86b7c3bd5742783.zip
Fix b/5974663: inconsistent transparency of disabled action buttons.
1. Avoid gray out save-button again as disabled alpha is already applied to all text buttons. 2. Reduce disabled alpha of image buttons to make them look consistent with text buttons. Change-Id: Ie76988db1424ce036470a754acd2e4501979dd1a
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/photoeditor_actionbar.xml6
-rw-r--r--res/layout/photoeditor_effects_menu.xml8
2 files changed, 7 insertions, 7 deletions
diff --git a/res/layout/photoeditor_actionbar.xml b/res/layout/photoeditor_actionbar.xml
index 8bd51ed43..e0adbbef9 100644
--- a/res/layout/photoeditor_actionbar.xml
+++ b/res/layout/photoeditor_actionbar.xml
@@ -36,11 +36,11 @@
<LinearLayout style="@style/ActionBarLinearLayout" android:layout_alignParentRight="true">
- <ImageButton
+ <com.android.gallery3d.photoeditor.ImageActionButton
android:id="@+id/undo_button"
style="@style/ImageActionButton"
android:src="@drawable/photoeditor_undo"/>
- <ImageButton
+ <com.android.gallery3d.photoeditor.ImageActionButton
android:id="@+id/redo_button"
style="@style/ImageActionButton"
android:src="@drawable/photoeditor_redo"/>
@@ -54,7 +54,7 @@
style="@style/TextActionButton"
android:layout_width="fill_parent"
android:text="@string/save"/>
- <ImageButton
+ <com.android.gallery3d.photoeditor.ImageActionButton
android:id="@+id/share_button"
style="@style/ImageActionButton"
android:layout_width="fill_parent"
diff --git a/res/layout/photoeditor_effects_menu.xml b/res/layout/photoeditor_effects_menu.xml
index 1688a9056..a0b102dbe 100644
--- a/res/layout/photoeditor_effects_menu.xml
+++ b/res/layout/photoeditor_effects_menu.xml
@@ -23,19 +23,19 @@
android:id="@+id/toggles"
style="@style/EffectsMenuContainer">
- <ImageButton
+ <com.android.gallery3d.photoeditor.ImageActionButton
android:id="@+id/exposure_button"
style="@style/EffectsMenuActionButton"
android:src="@drawable/photoeditor_exposure"/>
- <ImageButton
+ <com.android.gallery3d.photoeditor.ImageActionButton
android:id="@+id/artistic_button"
style="@style/EffectsMenuActionButton"
android:src="@drawable/photoeditor_artistic"/>
- <ImageButton
+ <com.android.gallery3d.photoeditor.ImageActionButton
android:id="@+id/color_button"
style="@style/EffectsMenuActionButton"
android:src="@drawable/photoeditor_color"/>
- <ImageButton
+ <com.android.gallery3d.photoeditor.ImageActionButton
android:id="@+id/fix_button"
style="@style/EffectsMenuActionButton"
android:src="@drawable/photoeditor_fix"/>