summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2011-09-15 03:24:43 +0800
committerWu-cheng Li <wuchengli@google.com>2011-09-15 07:39:55 +0800
commit977d06c6278cb7b131ed3c0960853d9168aacbdd (patch)
tree879136c52bcf2a4ebdbaca5a72e0e7f3b9db71ae /src
parentc24192e3b9a3d4f6e5e77e408fd4d91333b1275e (diff)
downloadLegacyCamera-977d06c6278cb7b131ed3c0960853d9168aacbdd.zip
LegacyCamera-977d06c6278cb7b131ed3c0960853d9168aacbdd.tar.gz
LegacyCamera-977d06c6278cb7b131ed3c0960853d9168aacbdd.tar.bz2
Update share UI to match redlines.
- Change animation to crossfade. - Remove border in the normal state. - Remove the divider of the application icons. - Change the area of the share popup to viewfinder only in panorama. bug:5290450 Change-Id: Ia483c65f846e568a942d855119634f02c2c30c14
Diffstat (limited to 'src')
-rw-r--r--src/com/android/camera/panorama/PanoramaActivity.java3
-rw-r--r--src/com/android/camera/ui/SharePopup.java9
2 files changed, 4 insertions, 8 deletions
diff --git a/src/com/android/camera/panorama/PanoramaActivity.java b/src/com/android/camera/panorama/PanoramaActivity.java
index c840f7a..ad83585 100644
--- a/src/com/android/camera/panorama/PanoramaActivity.java
+++ b/src/com/android/camera/panorama/PanoramaActivity.java
@@ -757,9 +757,8 @@ public class PanoramaActivity extends Activity implements
Uri uri = mThumbnail.getUri();
if (mSharePopup == null || !uri.equals(mSharePopup.getUri())) {
// The orientation compensation is set to 0 here because we only support landscape.
- // Panorama picture is long. Use pano_layout so the share popup can be full-screen.
mSharePopup = new SharePopup(this, uri, mThumbnail.getBitmap(), 0,
- findViewById(R.id.pano_layout));
+ findViewById(R.id.frame_layout));
}
mSharePopup.showAtLocation(mThumbnailView, Gravity.NO_GRAVITY, 0, 0);
}
diff --git a/src/com/android/camera/ui/SharePopup.java b/src/com/android/camera/ui/SharePopup.java
index cdc7756..4374d2d 100644
--- a/src/com/android/camera/ui/SharePopup.java
+++ b/src/com/android/camera/ui/SharePopup.java
@@ -59,7 +59,7 @@ public class SharePopup extends PopupWindow implements View.OnClickListener,
private int mBitmapWidth;
private int mBitmapHeight;
private int mOrientation;
- // A view that contains a thumbnail and an back arrow icon.
+ // A view that contains a thumbnail and an arrow icon.
private ViewGroup mShareView;
// A view that contains a list of application icons and the share view.
private View mRootView;
@@ -114,11 +114,11 @@ public class SharePopup extends PopupWindow implements View.OnClickListener,
sharePopup.setOnTouchListener(this);
mThumbnailRotateLayout = (RotateLayout) sharePopup.findViewById(R.id.thumbnail_rotate_layout);
mShareList = (ListView) sharePopup.findViewById(R.id.share_list);
+ mShareList.setDivider(null);
mThumbnail = (ImageView) sharePopup.findViewById(R.id.thumbnail);
mThumbnail.setImageBitmap(bitmap);
mShareView = (ViewGroup) sharePopup.findViewById(R.id.share_view);
mShareView.setOnClickListener(this);
- sharePopup.findViewById(R.id.arrow).setOnClickListener(this);
mBitmapWidth = bitmap.getWidth();
mBitmapHeight = bitmap.getHeight();
Resources res = mContext.getResources();
@@ -137,7 +137,7 @@ public class SharePopup extends PopupWindow implements View.OnClickListener,
setContentView(sharePopup);
setOrientation(orientation);
setFocusable(true);
- setAnimationStyle(android.R.style.Animation_Dialog);
+ setAnimationStyle(R.style.AnimationPopup);
createShareMenu();
}
@@ -200,9 +200,6 @@ public class SharePopup extends PopupWindow implements View.OnClickListener,
case R.id.share_view:
Util.viewUri(mUri, mContext);
break;
- case R.id.arrow:
- dismiss();
- break;
}
}