cara membuka fragmen dari adaptor di Kotlin

holder.send.setOnClickListener {
                val activity=it.context as AppCompatActivity
                activity.supportFragmentManager
                    .beginTransaction()
                    .replace(R.id.container,MessegeFragment.newInstance())
                    .commitNow()
        }
Zany Zebra