ViewBinding vs FindViewByID
Databinding is really faster compared to findViewById and setText . Not only performance, It is also much faster and maintainable for mid, full-scale projects. As a side note, benefits include:
- Performance
- Logic extraction from ui
- Code minimalization using livedata
- Testability
- Readability
- Avoiding null pointer exception when view is null(I love this feature)
- Custom property declaration in xml
- Updating multiple properties simultaneously