How to send data from recycler adapter to fragment | How to call fragment function from recyclerview adapter

前端 未结 3 1800
攒了一身酷
攒了一身酷 2021-01-13 04:56

I have code in Fragment:

InfoAdapter adapter = new InfoAdapter(getContext(), R.layout.lv_info, infoList );

            listingsView = (RecyclerView) rootVie         


        
3条回答
  •  既然无缘
    2021-01-13 05:29

    In your method onBindViewHolder, set the onclicklistener in the binded view and pass its parameters trough Bundle.

提交回复
热议问题