码迷,mamicode.com
首页 > 移动开发 > 详细

Android动画适配会影响摄像头拍摄前后图像的缩放

时间:2014-12-27 12:40:42      阅读:182      评论:0      收藏:0      [点我收藏+]

标签:

1.Project Build Target

如果Android Project Build Target的版本级别不一样,会导致功能支持的不一样,所以即使两份代码都一样编译器也会报错,某些低版本的没有高版本的支持的功能多。

 

2.屏幕适配的问题

    <SurfaceView
        android:id="@+id/surfaceView"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:keepScreenOn="true" />

    <FrameLayout
        android:id="@+id/frame_bg"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@drawable/page_1" />

FramLayout是动画会影响上面SurfaceView中摄像头预览与拍摄的图像缩放,所以FramLayout动画图片要考虑适配

Android动画适配会影响摄像头拍摄前后图像的缩放

标签:

原文地址:http://www.cnblogs.com/lidongliang/p/4188204.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!