Skip to content

Instantly share code, notes, and snippets.

@Lavanyagaur22
Created November 23, 2019 09:50
Show Gist options
  • Save Lavanyagaur22/171e97e71652dcba3ae0c3cd83775864 to your computer and use it in GitHub Desktop.
Save Lavanyagaur22/171e97e71652dcba3ae0c3cd83775864 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"
android:orientation="vertical"
tools:context=".MainActivity">
<TextureView
android:id="@+id/view_finder"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<TextView
android:id="@+id/tv_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center"
android:layout_marginBottom="32dp"
android:background="#000000"
android:gravity="center"
android:text="Point the camera at an object to get started"
android:textColor="#fff"
android:textSize="20sp"
android:textStyle="bold" />
</FrameLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment