Android Studio – Change activity's button state from fragment
Here I have code from both my activity and my fragment: Activity: class Activity0: AppCompatActivity() { private lateinit var binding: Activity0Binding override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) binding = Activity0Binding.inflate(layoutInflater) setContentView(binding.root) binding.popUpButton.setOnClickListener { supportFragmentManager.commit { replace(R.id.quiz_fragment_container, Activity0FragmentNull()) } binding.popUpButton.isEnabled =…