From a44cfbaf741b5410465cbfe6a4907eb38e0db001 Mon Sep 17 00:00:00 2001 From: Mark Wagner Date: Fri, 7 Oct 2011 15:21:00 -0700 Subject: bugfix 5290450 Share UI should match redlines Add the "go to gallery" button at the top of the list of share choices. Made it a separate button rather than part of the list since it gets it's own separator. Change-Id: I62f866f7aedd3e84916eccf037f3fa37a8528196 --- res/drawable-hdpi/ic_gallery.png | Bin 0 -> 803 bytes res/drawable-mdpi/ic_gallery.png | Bin 0 -> 658 bytes res/drawable-w1024dp-hdpi/ic_gallery.png | Bin 0 -> 998 bytes res/drawable-w1024dp-mdpi/ic_gallery.png | Bin 0 -> 802 bytes res/drawable-w1024dp-xhdpi/ic_gallery.png | Bin 0 -> 1219 bytes res/drawable-xhdpi/ic_gallery.png | Bin 0 -> 942 bytes res/layout/share_popup.xml | 25 +++++++++++++++++++++++-- src/com/android/camera/ui/SharePopup.java | 7 +++++++ 8 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 res/drawable-hdpi/ic_gallery.png create mode 100644 res/drawable-mdpi/ic_gallery.png create mode 100644 res/drawable-w1024dp-hdpi/ic_gallery.png create mode 100644 res/drawable-w1024dp-mdpi/ic_gallery.png create mode 100644 res/drawable-w1024dp-xhdpi/ic_gallery.png create mode 100644 res/drawable-xhdpi/ic_gallery.png diff --git a/res/drawable-hdpi/ic_gallery.png b/res/drawable-hdpi/ic_gallery.png new file mode 100644 index 0000000..bfccaa6 Binary files /dev/null and b/res/drawable-hdpi/ic_gallery.png differ diff --git a/res/drawable-mdpi/ic_gallery.png b/res/drawable-mdpi/ic_gallery.png new file mode 100644 index 0000000..b164c59 Binary files /dev/null and b/res/drawable-mdpi/ic_gallery.png differ diff --git a/res/drawable-w1024dp-hdpi/ic_gallery.png b/res/drawable-w1024dp-hdpi/ic_gallery.png new file mode 100644 index 0000000..18da118 Binary files /dev/null and b/res/drawable-w1024dp-hdpi/ic_gallery.png differ diff --git a/res/drawable-w1024dp-mdpi/ic_gallery.png b/res/drawable-w1024dp-mdpi/ic_gallery.png new file mode 100644 index 0000000..c977213 Binary files /dev/null and b/res/drawable-w1024dp-mdpi/ic_gallery.png differ diff --git a/res/drawable-w1024dp-xhdpi/ic_gallery.png b/res/drawable-w1024dp-xhdpi/ic_gallery.png new file mode 100644 index 0000000..0d6b27f Binary files /dev/null and b/res/drawable-w1024dp-xhdpi/ic_gallery.png differ diff --git a/res/drawable-xhdpi/ic_gallery.png b/res/drawable-xhdpi/ic_gallery.png new file mode 100644 index 0000000..eb189f8 Binary files /dev/null and b/res/drawable-xhdpi/ic_gallery.png differ diff --git a/res/layout/share_popup.xml b/res/layout/share_popup.xml index 416f46e..c9beb3a 100644 --- a/res/layout/share_popup.xml +++ b/res/layout/share_popup.xml @@ -46,17 +46,38 @@ - + + + + + - + diff --git a/src/com/android/camera/ui/SharePopup.java b/src/com/android/camera/ui/SharePopup.java index 42b27d1..84bada4 100644 --- a/src/com/android/camera/ui/SharePopup.java +++ b/src/com/android/camera/ui/SharePopup.java @@ -68,6 +68,7 @@ public class SharePopup extends PopupWindow implements View.OnClickListener, private ListView mShareList; // A rotated view that contains the thumbnail. private RotateLayout mThumbnailRotateLayout; + private RotateLayout mGotoGalleryRotate; private View mPreviewFrame; private ArrayList mComponent = new ArrayList(); @@ -120,6 +121,9 @@ public class SharePopup extends PopupWindow implements View.OnClickListener, mShareView = (ViewGroup) sharePopup.findViewById(R.id.share_view); mShareView.setOnClickListener(this); + mGotoGalleryRotate =(RotateLayout) sharePopup.findViewById(R.id.goto_gallery_button_rotate); + sharePopup.findViewById(R.id.goto_gallery_button).setOnClickListener(this); + mBitmapWidth = bitmap.getWidth(); mBitmapHeight = bitmap.getHeight(); @@ -258,6 +262,8 @@ public class SharePopup extends PopupWindow implements View.OnClickListener, r.setOrientation(orientation); } + mGotoGalleryRotate.setOrientation(orientation); + adjustThumbnailPosition(); } @@ -271,6 +277,7 @@ public class SharePopup extends PopupWindow implements View.OnClickListener, @Override public void onClick(View v) { switch (v.getId()) { + case R.id.goto_gallery_button: case R.id.share_view: Util.viewUri(mUri, mContext); break; -- cgit v1.1