Skip to content

Instantly share code, notes, and snippets.

@yelinaung
Last active August 29, 2015 14:23
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 yelinaung/1aacee3910557960c3d4 to your computer and use it in GitHub Desktop.
Save yelinaung/1aacee3910557960c3d4 to your computer and use it in GitHub Desktop.
MMAUG Simple Databinding - Normal activity_main.xml Layout
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:padding="@dimen/activity_horizontal_margin"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:id="@+id/userName"
tools:text="John"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/userAge"
tools:text="28"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/userAddress"
tools:text="Yangon, Myanmar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment