sythetic depricate ho gai to ek ek karke sabke liye find view by id ka use karna padraha hai yaha pr 9 buttons the sabki id lena padegi iske liye koi aur alternative nahi hai kya
So many times using findViewById
@harshitsoni you can still use synthetic by adding
apply plugin: 'kotlin-android-extensions'
at the top of build.gradle (app)
incase you don’t want to use synthetic as it is deprecated. I suggest using ViewBinding or Databinding.
this requires adding a bit of code in every fragment or activity.
To use ViewBinding you can have a look at its setup instructions if you face any issues do let me know
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.