Skip to content

Instantly share code, notes, and snippets.

@dolmens
Created October 18, 2020 00:12
Show Gist options
  • Save dolmens/b704a1fd903815f94674ff1dcc40fb72 to your computer and use it in GitHub Desktop.
Save dolmens/b704a1fd903815f94674ff1dcc40fb72 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"
android:layout_width="match_parent"
android:layout_height="match_parent">
<fragment
android:id="@+id/ux_fragment"
android:name="com.google.ar.sceneform.ux.ArFragment"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<TextView
android:id="@+id/tvDistance"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="@android:color/black"
android:gravity="center"
android:padding="8dp"
android:textColor="@android:color/white"
android:textSize="20sp" />
</FrameLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment