View Binding — Overview

Android Architecture Components

Components Adding to your Project

allprojects {
repositories {
google()
jcenter()
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation "androidx.lifecycle:lifecycle-viewmodel:2.1.0"

}

Enable View Binding OR Data Binding

dataBinding {
enabled = true
}

Before starting the project let see the advantage of the View Binding

Avoid Null Pointer Exception

Type Safe

Event Handling

--

--

Mobile Application Developer | Flutter Developer | Project Manager | Team Leader | Scrum Certified | PMI APC Appeard | Writing (starting soon)

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store