val fragmentTransaction = fragmentManager?.beginTransaction()
    fragmentTransaction?.replace(R.id.frame_layout, fragment, tag)
    fragmentTransaction?.addToBackStack(tag)
    fragmentTransaction?.commit()
}
    val manager: FragmentManager = supportFragmentManager
    val transaction: FragmentTransaction = manager.beginTransaction()
    transaction.add(R.id.frame_layout, fragment)
    transaction.commit()
}

Post Suggeriti