Skip to content

Instantly share code, notes, and snippets.

@ssaurel
Created June 7, 2018 10:25
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/c1113224d4ac06cb6de527771aa03464 to your computer and use it in GitHub Desktop.
Save ssaurel/c1113224d4ac06cb6de527771aa03464 to your computer and use it in GitHub Desktop.
UI for our Lock Screen Device App on the SSaurel's Channel
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.ssaurel.lockdevice.MainActivity">
<Button
android:id="@+id/lock"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_marginTop="50dp"
android:text="Lock the Phone"
android:layout_centerHorizontal="true"/>
<Button
android:id="@+id/enableBtn"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_marginTop="50dp"
android:text="Enable"
android:layout_centerHorizontal="true"
android:layout_below="@id/lock"/>
<Button
android:id="@+id/disableBtn"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_marginTop="50dp"
android:text="Disable"
android:layout_centerHorizontal="true"
android:layout_below="@id/enableBtn"/>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment