Skip to content

Instantly share code, notes, and snippets.

@magdamiu

magdamiu/main_layout.xml

Last active Aug 8, 2020
Embed
What would you like to do?
Smile, it’s CameraX! [preview and capture] | Preview - step 3: add PreviewView in a layout
<FrameLayout
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.camera.view.PreviewView
android:id="@+id/preview"
android:layout_width="match_parent"
android:layout_height="match_parent" >
</androidx.camera.view.PreviewView>
</FrameLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.