From e83215c9a82c811b61357091ff2ba45e5ba08092 Mon Sep 17 00:00:00 2001 From: nicolasroard Date: Fri, 28 Sep 2012 16:03:21 -0700 Subject: Improve ActionBar - show both undo and redo - add the checkmark with done instead of the up mark bug:7233986 Change-Id: I32af8068b08763461b720054f270cb6acabefbbf --- src/com/android/gallery3d/filtershow/FilterShowActivity.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/com/android/gallery3d/filtershow/FilterShowActivity.java b/src/com/android/gallery3d/filtershow/FilterShowActivity.java index a64ece0cc..43ff67750 100644 --- a/src/com/android/gallery3d/filtershow/FilterShowActivity.java +++ b/src/com/android/gallery3d/filtershow/FilterShowActivity.java @@ -83,8 +83,15 @@ public class FilterShowActivity extends Activity implements OnItemClickListener setContentView(R.layout.filtershow_activity); ActionBar actionBar = getActionBar(); - actionBar.setDisplayHomeAsUpEnabled(true); - actionBar.setTitle(R.string.done); + actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM); + actionBar.setCustomView(R.layout.filtershow_actionbar); + + actionBar.getCustomView().setOnClickListener(new OnClickListener() { + @Override + public void onClick(View view) { + saveImage(); + } + }); mImageLoader = new ImageLoader(getApplicationContext()); -- cgit v1.2.3