diff options
author | Wu-cheng Li <wuchengli@google.com> | 2011-08-26 23:14:27 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2011-08-29 13:34:12 +0800 |
commit | 4591c5ecbaade585c3094be353d27b14f0592494 (patch) | |
tree | 39f271f4aa0b277ade6c8cb0ac8a2f80f1cdd83d /res/layout | |
parent | 21eafb33a46aad92326df76b41771194b1f341f9 (diff) | |
download | LegacyCamera-4591c5ecbaade585c3094be353d27b14f0592494.zip LegacyCamera-4591c5ecbaade585c3094be353d27b14f0592494.tar.gz LegacyCamera-4591c5ecbaade585c3094be353d27b14f0592494.tar.bz2 |
Make the size of the share popup the same as preview area.
bug:5157438
Change-Id: Ib199ee62cce314c648c323304289af7e1421c59e
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/share_popup.xml | 51 |
1 files changed, 28 insertions, 23 deletions
diff --git a/res/layout/share_popup.xml b/res/layout/share_popup.xml index e069595..7d386ff 100644 --- a/res/layout/share_popup.xml +++ b/res/layout/share_popup.xml @@ -22,34 +22,39 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/dim_background"> - <FrameLayout android:id="@+id/share_view" + <FrameLayout android:id="@+id/root" android:layout_width="wrap_content" - android:layout_height="match_parent" - android:layout_gravity="center" - android:background="@drawable/border_last_picture"> - <com.android.camera.ui.RotateLayout - android:id="@+id/thumbnail_rotate_layout" + android:layout_height="wrap_content" + android:layout_gravity="left|center"> + <FrameLayout android:id="@+id/share_view" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_gravity="center"> - <!-- The size of the thumbnail is calculated in SharePopup.java --> - <ImageView android:id="@+id/thumbnail" + android:layout_gravity="center" + android:background="@drawable/border_last_picture"> + <com.android.camera.ui.RotateLayout + android:id="@+id/thumbnail_rotate_layout" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:adjustViewBounds="true" - android:scaleType="fitCenter"/> - </com.android.camera.ui.RotateLayout> - <FrameLayout - android:layout_width="@dimen/share_item_width" - android:layout_height="match_parent" - android:layout_gravity="right" - android:background="@color/dim_background"> - <ListView android:id="@+id/share_list" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:orientation="vertical" - android:choiceMode="singleChoice" - style="@android:style/Widget.Holo.ListView" /> + android:layout_gravity="center"> + <!-- The size of the thumbnail is calculated in SharePopup.java --> + <ImageView android:id="@+id/thumbnail" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:adjustViewBounds="true" + android:scaleType="fitCenter"/> + </com.android.camera.ui.RotateLayout> + <FrameLayout + android:layout_width="@dimen/share_item_width" + android:layout_height="match_parent" + android:layout_gravity="right" + android:background="@color/dim_background"> + <ListView android:id="@+id/share_list" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:choiceMode="singleChoice" + style="@android:style/Widget.Holo.ListView" /> + </FrameLayout> </FrameLayout> </FrameLayout> </FrameLayout> |