summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorjunjiez <junjiez@codeaurora.org>2016-12-07 18:07:08 +0800
committerqimengp <qimengp@codeaurora.org>2016-12-13 19:31:59 +0800
commitf660ebb22938f60323c704002c707e4e6d461694 (patch)
tree8cfbed5f58e2654cd79bec108793f8b284dc9701 /res/layout
parentd939396a8cfc2fc1ad22062ecc499a97d4537e00 (diff)
downloadandroid_packages_apps_Snap-f660ebb22938f60323c704002c707e4e6d461694.tar.gz
android_packages_apps_Snap-f660ebb22938f60323c704002c707e4e6d461694.tar.bz2
android_packages_apps_Snap-f660ebb22938f60323c704002c707e4e6d461694.zip
SnapdragonCamera:Fix bestPicture display in wrong size
Set the size of the imageview to match parent and show the image with its original ratio of width and height to avoid showing in wrong size when rotate the screen. Change-Id: I2b2e68f36248700e9dc21082086854516eb4cac0 CRs-Fixed: 1096576
Diffstat (limited to 'res/layout')
-rwxr-xr-x[-rw-r--r--]res/layout/bestpicture_page.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/res/layout/bestpicture_page.xml b/res/layout/bestpicture_page.xml
index d6b6022c8..5a1b604f0 100644..100755
--- a/res/layout/bestpicture_page.xml
+++ b/res/layout/bestpicture_page.xml
@@ -34,9 +34,9 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
<ImageView
android:id="@+id/image_view"
android:adjustViewBounds="true"
- android:scaleType="fitXY"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
+ android:scaleType="fitCenter"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
android:layout_gravity="center" />
<RelativeLayout
android:layout_width="match_parent"