Skip to content

Instantly share code, notes, and snippets.

@adityaladwa
Created December 29, 2016 09:22
Show Gist options
  • Save adityaladwa/683315868194c497c237b4ba9a91906d to your computer and use it in GitHub Desktop.
Save adityaladwa/683315868194c497c237b4ba9a91906d to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment