Surface的拍照实现也是很简单,一个小demo就可以把流程看懂了。
话不多说,直接上代码
布局文件
<SurfaceView android:layout_width=match_parent
android:layout_height=match_parent
android:id=@+id/sv_main_surface
>
<Button
android:layout_width=match_parent
android:layout_height=wrap_content
android:onC