enviroCar / enviroCar-app

enviroCar Android Application
https://envirocar.org
GNU General Public License v3.0
88 stars 154 forks source link

Replace Butter Knife view binding with Jetpack View Binding #934

Open Akash-Ramjyothi opened 1 year ago

Akash-Ramjyothi commented 1 year ago

Description:

Replace the deprecated Butter Knife view binding with Jetpack View Binding to provide a cleaner approach for separating views from models.

Butterknife is a 3rd party library made to address the issue of using findViewById(...) functions to reference and interact with views. It helped reduce boilerplate code but also had to set up a @Bind annotation every time we wanted to interact with a view. Then View Binding was introduced starting at Gradle version 3.6. A build feature which led to the deprecation of Butterknife and a decrease in the use of findViewById(...) functions.

Maybe Fixed on: #935.