RedApparat / Fotoapparat

Making Camera for Android more friendly. 📸
Apache License 2.0
3.81k stars 405 forks source link

CameraView: How to create CameraView Object programmatically #342

Closed sharma4frnds closed 5 years ago

sharma4frnds commented 5 years ago

CameraView: How to create CameraView Object programmatically, if i dont want to use <io.fotoapparat.view.CameraView android:id="@+id/camera_view" android:layout_width="match_parent" android:layout_height="match_parent"/> in my code, please share some sample code.

Diolor commented 5 years ago

Like any other custom view: CameraView(context)