Start new Activity with onClick() in RecyclerView

后端 未结 10 739
渐次进展
渐次进展 2020-12-03 06:12

I want to go into a new Activity with the onClick() method but my code is not working. Can you please offer some advice. I have some issues with the recyclerView, since it\'

10条回答
  •  醉梦人生
    2020-12-03 06:18

    context.startActivity( new Intent(context, DifferentActivity.class););
    

    Check here for full solution: How to open a different activity on recyclerView item onclick

提交回复
热议问题