I want to resize the camera preview dynamically but always fail.
I start my preview by setting the size as follow
<SurfaceView
android:id="@+id/mSurfaceView1"
android:layout_gravity="center_vertical|center_horizontal"
android:visibility="visible"
android:layout_width="480px"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.