Skip to content

Instantly share code, notes, and snippets.

@sidishere
Created December 24, 2019 11:08
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 sidishere/7bee2fa3b21651b441fb1358e04d7704 to your computer and use it in GitHub Desktop.
Save sidishere/7bee2fa3b21651b441fb1358e04d7704 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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"
android:orientation="vertical"
tools:context=".LedControl">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="LED Control"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="ON"
android:id="@+id/onButton"
android:layout_gravity="center"
android:layout_marginTop="30dp" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="OFF"
android:id="@+id/offButton"
android:layout_marginTop="15dp"
android:layout_gravity="center"
/>
<Button
android:layout_marginTop="16dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Disconnect"
android:layout_gravity="center"
android:id="@+id/disconnectButton" />
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment