Created
June 18, 2015 06:07
-
-
Save yelinaung/1bf6393865eae0308d0f to your computer and use it in GitHub Desktop.
MMAUG Simple Databinding - After binding activity_main.xml Layout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<layout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools"> | |
<data> | |
<variable | |
name="user" | |
type="org.mmaug.simpledatabinding.User"/> | |
</data> | |
<LinearLayout | |
android:padding="@dimen/activity_horizontal_margin" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical"> | |
<TextView | |
tools:text="John" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="@{user.name}"/> | |
<TextView | |
tools:text="28" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="@{user.age}"/> | |
<TextView | |
tools:text="Yangon, Myanmar" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="@{user.address}"/> | |
</LinearLayout> | |
</layout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment