Skip to content

Instantly share code, notes, and snippets.

@JakeSteam
Created November 20, 2018 23:37
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 JakeSteam/95c34f65a274bf828f8631c24050ce10 to your computer and use it in GitHub Desktop.
Save JakeSteam/95c34f65a274bf828f8631c24050ce10 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
tools:context=".develop.mlkit.MLKitFragment"
android:fadeScrollbars="false">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:orientation="horizontal">
<Button
android:id="@+id/textButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Text" />
<Button
android:id="@+id/faceButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Face" />
<Button
android:id="@+id/barcodeButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Barcode" />
<Button
android:id="@+id/objectButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Object" />
</LinearLayout>
<ImageView
android:id="@+id/imagePreview"
android:layout_width="match_parent"
android:layout_height="400dp"
android:cropToPadding="true"/>
<TextView
android:id="@+id/output"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dp"/>
</LinearLayout>
</ScrollView>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment