Skip to content

Instantly share code, notes, and snippets.

@v3n3
Created October 17, 2016 21:06
Show Gist options
  • Save v3n3/80603b40d4f03b93e410e4ab258446d5 to your computer and use it in GitHub Desktop.
Save v3n3/80603b40d4f03b93e410e4ab258446d5 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:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools">
<data>
<variable
name="model"
type="com.example.MyModel"/>
</data>
<android.support.design.widget.CoordinatorLayout
android:id="@+id/activity_container"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.design.widget.TextInputEditText
android:layout_width="match_parent"
android:layout_height="80dp"
android:hint="@string/username"
android:text="@={model.username}"
android:maxLines="1"/>
</android.support.design.widget.CoordinatorLayout>
</layout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment