Skip to content

Instantly share code, notes, and snippets.

@ssaurel
Created October 19, 2017 12:22
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 ssaurel/8f9f61d5a19cea4721b3ef5c35c5145b to your computer and use it in GitHub Desktop.
Save ssaurel/8f9f61d5a19cea4721b3ef5c35c5145b to your computer and use it in GitHub Desktop.
UI for the Torch Flashlight App on the SSaurel's Blog
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<ImageView
android:id="@+id/imageFlashlight"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:src="@drawable/btn_switch_off"/>
<Button
android:id="@+id/buttonEnable"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:textSize="20sp"
android:text="Enable Camera"
android:layout_above="@id/imageFlashlight"
android:layout_marginBottom="40dp"/>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment