Changes

Jump to: navigation, search

An Overview of Android Jetpack Data Binding

118 bytes removed, 18:39, 16 January 2019
The Data Binding Layout File
</pre>
=== The The Data Binding Layout File ===
As we have seen in previous chapters, the user interfaces for an app are typically contained within an XML layout file. Before the views contained within one of these layout files can take advantage of data binding, the layout file must first be converted to a data binding layout file.
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout 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"
    android:id="@+id/main"
    android:layout_width="match_parent"

Navigation menu