Может, тебе это поможет?
class BottomSheetFragment : BottomSheetDialogFragment() {
lateinit var binding: FragmentBottomSheetBinding
override fun onCreateView(
inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
// Inflate the layout for this fragment
binding = DataBindingUtil.inflate(inflater, R.layout.fragment_bottom_sheet, container, false)
val view = binding.root
return view
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
binding.exampleTextView.text = "This is Example Text"
}
}