Skip to content

Instantly share code, notes, and snippets.

@Kotlin-Native
Last active August 29, 2015 14:25
Show Gist options
  • Select an option

  • Save Kotlin-Native/d387e6b0aa99a011e2a3 to your computer and use it in GitHub Desktop.

Select an option

Save Kotlin-Native/d387e6b0aa99a011e2a3 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">
<data>
<variable name="user" type="com.example.User"/>
</data>
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@{user.firstName}"/>
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@{user.lastName}"/>
</LinearLayout>
</layout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment