morozov
07/06/2017, 2:59 PMsomeView.setOnClickListener {
val manager = (context as Activity).fragmentManager
manager.beginTransaction().replace(R.layout.fragment_transaction_edit, TransactionEditFragment()).commit()
}
for me that way doesn t worklouiscad
07/06/2017, 3:36 PMHost
in your RecyclerView.Adapter class that can be implemented by your Activity where item clicks and other user interaction on list items will be forwarded. Then add a constructor property of this interface to your Adapter, and to your ViewHolder(s) class(es), so you can call the methods from your ViewHolder which get to the Host