issues findViewById is an expensive call. It traverses the UI hierarchy only once. Data binding improves efficiency of by preventing numerous findViewById calls
need to use data binding? • Android Studio 1.3+ • Gradle 1.5.0-alpha1 and above • Download the library from the Support repository in the Android SDK manager.
embed include tags within your layout. • Each include must have an id for you to be able to access it from code. • An <include> tag cannot be the direct child of a <merge> tag
Process layout files ◦ Removing every data binding-related stuff in the layout. • Parse expressions • During compile, resolve dependencies • Find setters, and set attributes • Write data binding` Begin Compilation Process layout files Parse Expressions Resolve dependencies Find setters Write binders Java Compilation