summaryrefslogtreecommitdiffstats
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
parentd939396a8cfc2fc1ad22062ecc499a97d4537e00 (diff)
downloadandroid_packages_apps_Snap-f660ebb22938f60323c704002c707e4e6d461694.zip
android_packages_apps_Snap-f660ebb22938f60323c704002c707e4e6d461694.tar.gz
android_packages_apps_Snap-f660ebb22938f60323c704002c707e4e6d461694.tar.bz2
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
-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 d6b6022..5a1b604 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"