Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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