diff options
author | Wu-cheng Li <wuchengli@google.com> | 2011-09-15 03:24:43 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2011-09-15 07:39:55 +0800 |
commit | 977d06c6278cb7b131ed3c0960853d9168aacbdd (patch) | |
tree | 879136c52bcf2a4ebdbaca5a72e0e7f3b9db71ae /src/com/android/camera/ui/SharePopup.java | |
parent | c24192e3b9a3d4f6e5e77e408fd4d91333b1275e (diff) | |
download | LegacyCamera-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/com/android/camera/ui/SharePopup.java')
-rw-r--r-- | src/com/android/camera/ui/SharePopup.java | 9 |
1 files changed, 3 insertions, 6 deletions
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; } } |