Since I discovered the use of view binding by enabling
buildFeatures {
viewBinding true
}
in my gradle file, I never used findviewById in my code again. I wonder now if there is a cons to doing things this way. If this is the best method, why does android studio not enable this option by default when creating a new project? If not, when should I avoid using view binding? thank you.