Difference between requireActivity() and requireContext()
The requireActivity() and requireContext() methods are both utility methods provided by the AndroidX Fragment library that obtain references to the associated Activity and Context objects respectively within a Fragment.
RequireActivity()
This method ...
williamrai.hashnode.dev1 min read