Skip to content

Instantly share code, notes, and snippets.

@ssaurel
Created November 9, 2017 13:37

Revisions

  1. ssaurel created this gist Nov 9, 2017.
    31 changes: 31 additions & 0 deletions activity_main.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,31 @@
    <?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>