ViewBinding to bottomsheet

Viewed 20

Does anyone know if there would be a way to use ViewBinding to replace this findViewById and how do I do that?

My code:

val bottomSheet = (it as BottomSheetDialog).findViewById<View>(com.google.android.material.R.id.design_bottom_sheet)
0 Answers
Related