Skip to content

Instantly share code, notes, and snippets.

@ssaurel
Created November 9, 2017 13:37
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/c71d89b3390072da67fe729b590c081e to your computer and use it in GitHub Desktop.
Save ssaurel/c71d89b3390072da67fe729b590c081e to your computer and use it in GitHub Desktop.
Main Activity for the NFC Reader 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.nfcreader.MainActivity">
<ImageView
android:id="@+id/logo"
android:layout_width="200dp"
android:layout_height="200dp"
android:layout_marginTop="50dp"
android:src="@drawable/logo"
android:layout_centerHorizontal="true"/>
<TextView
android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:text="Hold a tag against the back of your device"
android:textStyle="bold"
android:textSize="20sp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="50dp"
android:gravity="center_horizontal"
android:layout_below="@id/logo"/>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment