Expand note to second fragment

How can I expand my note when I click on it. The notes that I create inside the recyclerviewer are card view. When I click on it I try to log, but got no message returned, what’s wrong?

 // Onclick the note, Open the second fragment
    activity?.findViewById<CardView>(R.id.card_view_note)?.setOnClickListener {
        Log.i("Info", "Note clicked")
        Toast.makeText(context,"some text", Toast.LENGTH_LONG).show()
        // findNavController().navigate(R.id.action_FirstFragment_to_SecondFragment)

        // pass the right id of the note to the next layout
    }