title: How to call navigation action after click on item with RecyclerView and DataBinding?
body: <p>I have problem with call navigation action defined in nav_graph in my adpter.</p>
  
  <p>I tried to call <code>Navigation.findNavController(v).navigate(id_myaction)</code>  in the <code>bind</code> function of the <code>ViewHolder</code> but it doesnt work and I got </p>
  
  <blockquote>
    <p>error : " View
    androidx.constraintlayout.widget.ConstraintLayout{96d8d23 V.E...C..
    ...P.... 0,471-1080,628} does not have a NavController set"</p>
  </blockquote>
  
  <p>It's my action:</p>
  
  <pre><code>&lt;fragment
              android:id="@+id/eventListFragment"
              android:name="EventListFragment"
              android:label="fragment_event_list"
              tools:layout="@layout/fragment_event_list" &gt;
          &lt;action
                  android:id="@+id/action_eventListFragment_to_startEventFragment"
                  app:destination="@id/startEventFragment" /&gt;
  &lt;/fragment&gt;
  </code></pre>
  
  <p>It's my adapter:</p>
  
  <pre><code>class EventListAdapter(val findNavController: NavController) : RecyclerView.Adapter&lt;EventListAdapter.ViewHolder&gt;() {
      private lateinit var eventList:List&lt;Event&gt;
  
  
      override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): EventListAdapter.ViewHolder {
          val binding: EventListItemBinding = DataBindingUtil.inflate(LayoutInflater.from(parent.context), R.layout.event_list_item, parent, false)
          return ViewHolder(binding,findNavController)
      }
  
      override fun onBindViewHolder(holder: EventListAdapter.ViewHolder, position: Int) {
          holder.bind(eventList[position])
      }
  
      override fun getItemCount(): Int {
          return if(::eventList.isInitialized) eventList.size else 0
      }
  
      fun updateEventList(eventList:List&lt;Event&gt;){
          this.eventList = eventList
          notifyDataSetChanged()
      }
  
      class ViewHolder(private val binding: EventListItemBinding, val findNavController: NavController):RecyclerView.ViewHolder(binding.root){
          private val viewModel = EventListItemViewModel()
  
          fun bind(event:Event){
              viewModel.bind(event)
              binding.root.setOnClickListener {v -&gt; Navigation.findNavController(v).navigate(R.id.action_eventListFragment_to_startEventFragment)}
          binding.viewModel = viewModel
          }
  
      }
  }
  </code></pre>
  
  <p>I would to start startEventFragment definied in my action after click on item.</p>