Skip to content

Instantly share code, notes, and snippets.

@adityaladwa
Created December 29, 2016 09:50
Show Gist options
  • Save adityaladwa/836045eb9ce1be2cfa558627e1ba8da3 to your computer and use it in GitHub Desktop.
Save adityaladwa/836045eb9ce1be2cfa558627e1ba8da3 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<layout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<RelativeLayout
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.ladwa.aditya.databindingintrotutorial.MainActivity">
<TextView
android:id="@+id/text_hello"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:text="Hello World!"
android:textSize="18sp"
/>
<TextView
android:id="@+id/text_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/text_hello"
android:layout_centerInParent="true"
android:text="Name"
android:textSize="15sp"/>
</RelativeLayout>
</layout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment