Kotlin: LayoutInflate from another layout file
I want to findViewById() in Kotlin from another layout file, but firstly I need to inflate the view of that file, right?
val newView = LayoutInflater.from().inflate(R.layout.fragment_home, null)
I'm not sure what to put in the from brackets, because apparently my parent is null, so I cant use parent.context.
This is my setContentViewPart:
binding = ActivityMainBinding.inflate(layoutInflater)
setContentView(binding.root)
What can I put in .from(), or is there any other method to...