Neeraj Yadav
Neeraj Yadav

Reputation: 422

How can I just use Surface View to only provide priview from Camera

<SurfaceView
    android:layout_width="match_parent"
    android:layout_height="300dp"
    android:id="@+id/surfaceView"/>

I want to write a code in .java file where i just want to open camera inside this surface view.

Upvotes: 0

Views: 121

Answers (1)

user49557
user49557

Reputation: 132

Well what you need is to create an Custom Camera View Here is the answer to that question How to show the camera preview on a SurfaceView?

Upvotes: 1

Related Questions