Created
October 19, 2017 12:22
-
-
Save ssaurel/8f9f61d5a19cea4721b3ef5c35c5145b to your computer and use it in GitHub Desktop.
UI for the Torch Flashlight App on the SSaurel's Blog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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