Intent is not working in my RecyclerView

后端 未结 4 835
被撕碎了的回忆
被撕碎了的回忆 2021-01-27 00:17

I use this code:

import android.content.Context;
import android.content.Intent;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater         


        
4条回答
  •  逝去的感伤
    2021-01-27 00:54

    AFAIK, RecyclerView doesn't support click events of child views of items. Any events of child views are shielded. Only RecyclerView.OnItemTouchListener is OK to listen to events of items of RecyclerView.

提交回复
热议问题