Skip to content

Instantly share code, notes, and snippets.

@ananthrajsingh
Last active May 21, 2020 12:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ananthrajsingh/cbd5693aa0276e34d8e5640fd07ae110 to your computer and use it in GitHub Desktop.
Save ananthrajsingh/cbd5693aa0276e34d8e5640fd07ae110 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<!--This is a custom TextureView, generic TextureView can be used as well-->
<com.ananth.frontrearcamera.view.AutoFitTextureView
android:layout_weight="1"
android:id="@+id/texture1"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<com.ananth.frontrearcamera.view.AutoFitTextureView
android:layout_weight="1"
android:id="@+id/texture2"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment