Ask Your Question
0

JavaCameraView Surface is not full screen

asked 2018-07-04 02:35:54 -0600

joyceeeen gravatar image

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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2018-07-04 07:31:42 -0600

dkurt gravatar image

@joyceeeen, try to hide an action buttons bar. Add

android:theme="@style/Theme.AppCompat.NoActionBar"

to your AndroidManifest.xml

source: https://docs.opencv.org/master/d0/d6c...

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-07-04 02:35:54 -0600

Seen: 1,688 times

Last updated: Jul 04 '18