summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorSanthosh Kumar H E <skhara@codeaurora.org>2013-10-25 13:14:10 +0530
committerLinux Build Service Account <lnxbuild@localhost>2013-10-31 19:40:12 -0600
commit6bc53a127961ec9006c8305a576091c69dce641d (patch)
tree202070705a2084f50a8d465364df8ffa59856e94 /res/layout
parenta051ea5f2d2568144ba1c491153877d55076343d (diff)
downloadandroid_packages_apps_Snap-6bc53a127961ec9006c8305a576091c69dce641d.tar.gz
android_packages_apps_Snap-6bc53a127961ec9006c8305a576091c69dce641d.tar.bz2
android_packages_apps_Snap-6bc53a127961ec9006c8305a576091c69dce641d.zip
Camera: Fix for stretched preview in camera and camcorder...
Stretched preview is observed in front camera due to sensor's mount angle. So resizing the preview by considering aspect ratio of the preview. (cherry picked from commit Ie8a9e062782aa6caaa80ddab705c937da6b0761e) Change-Id: I0bca9076a6dffa4c4972e6d5d0939c57569615bd Conflicts: src/com/android/camera/PhotoMenu.java src/com/android/camera/PhotoModule.java Conflicts: src/com/android/camera/PhotoMenu.java src/com/android/camera/PhotoModule.java (cherry picked from commit 2960ef94825458dc07a497d4414155b57ae620d7) (cherry picked from commit d2fbed622a486151a656261d0dd56c896f0cc700)
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/photo_module.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/res/layout/photo_module.xml b/res/layout/photo_module.xml
index c2fbe33c8..0157bbcbb 100644
--- a/res/layout/photo_module.xml
+++ b/res/layout/photo_module.xml
@@ -29,7 +29,8 @@
view will not draw outside its unscaled bounds -->
<FrameLayout
android:layout_width="match_parent"
- android:layout_height="match_parent">
+ android:layout_height="match_parent"
+ android:layout_gravity="center_vertical|center_horizontal">
<TextureView
android:id="@+id/preview_content"
android:layout_width="match_parent"