Here is simple code to implement two way DataBinding in Android. Assuming User is your model class and user is variable you are using as a reference in xml file.
- <EditText android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:text="@={user.email}" />
