Skip to content

Instantly share code, notes, and snippets.

@Lavanyagaur22
Created November 26, 2019 06:58
Show Gist options
  • Save Lavanyagaur22/1e8dc91549f2cfb78fa612eaa6162f70 to your computer and use it in GitHub Desktop.
Save Lavanyagaur22/1e8dc91549f2cfb78fa612eaa6162f70 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<TextureView
android:id="@+id/view_finder"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/image_view"
android:layout_width="match_parent"
android:layout_height="440dp"
android:layout_gravity="center"
android:layout_margin="10dp"
android:layout_marginStart="80dp"
android:layout_marginEnd="80dp"
android:padding="5dp" />
</FrameLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment