I have developed a camera app using ,latest Camera 2 API,the camera preview is set to a Texture view, I set both width and height as Match_parent ,is there any other attributes needed to set ?how can I set the camera preview in a full screen view??I am a beginner, I don't know how to set this,can anybody help??
<TextureView
android:id="@+id/texture"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
Use a NoActionBar Theme for that activity. This answer can guide you to achieve that.