Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

JavaCameraView Surface is not full screen

My cameraview wont turn to full screen

Things Ive tried

1. FLAG_FULLSCREEN in onCreate

2. NoActionBar Theme in Manifest

3. android:screenOrientation="landscape"

and still nothing

Layout

<LinearLayout xmlns:android="http://schema.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity">

<org.opencv.android.JavaCameraView
android:id="@+id/live_camera"
android:layout_width="match_parent"
android:layout_height="match_parent"/>

</LinearLayout>

Screenshot

screenshot