我将遵循这个示例。但是,当我将其移植到我的手机上(以便使用相机),预览向左翻转了90度。除此之外,一切都正常运作。
我的问题是:如何“取消翻转”预览? 以下是我的布局文件内容:
我的问题是:如何“取消翻转”预览? 以下是我的布局文件内容:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal">
<android.view.SurfaceView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/preview"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
</android.view.SurfaceView>
</LinearLayout>
此外,当我试图自己旋转手机时,它会保持在“横屏”模式。
提前感谢!