Skip to content

Instantly share code, notes, and snippets.

@b00sti
Last active January 29, 2018 00:33
Show Gist options
  • Save b00sti/a7dfc27aceb88b269e5e9fa5e2366228 to your computer and use it in GitHub Desktop.
Save b00sti/a7dfc27aceb88b269e5e9fa5e2366228 to your computer and use it in GitHub Desktop.
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<data>
<variable
name="todo"
type="com.b00sti.models.Todo" />
</data>
<ImageView
android:id="@+id/image"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:imageURL="@{todo.image}" />
<TextView
android:id="@+id/date"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@{todo.date}" />
</layout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment