How can I open a new Activity inside of a fragment when using a button?
I tried this
override fun onViewCreated(view: View, savedInstanceState: Bundle?
Put this
LogOut_btn.setOnClickListener { //FirebaseAuth.getInstance().signOut() val intent = Intent (this, Main::class.java) startActivity(intent) }
inside the onCreate method of the Activity where the fragment is loaded