Skip to content

Instantly share code, notes, and snippets.

@blogdarkspot
Created June 23, 2017 23:08
Show Gist options
  • Save blogdarkspot/542f4b4e79fe1e4b470f2c60d28eaa18 to your computer and use it in GitHub Desktop.
Save blogdarkspot/542f4b4e79fe1e4b470f2c60d28eaa18 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">
<data>
<variable
name="user"
type="com.example.fabio.databind.Person" />
</data>
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.fabio.databind.MainActivity">
<TextView
android:id="@+id/tv_name_title"
android:layout_width="58dp"
android:layout_height="19dp"
android:layout_marginTop="27dp"
android:text="Name:"
/>
<TextView
android:id="@+id/tv_name"
android:text="@{user.name}"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:layout_editor_absoluteY="27dp"
/>
</LinearLayout>
</layout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment