I have followed this tutorial to create a list of cardviews and now I would like that after click on a cardview to start a new activity "cardview_detalle" in which to display the detailed information of the selected cardview
I have followed this tutorial to create a list of cardviews and now I would like that after click on a cardview to start a new activity "cardview_detalle" in which to display the detailed information of the selected cardview
Inside the RecyclerView
adapter put the code to launch the activity
private final Context context;
...
public ViewHolder (View v) {
super(v);
context = v.getContext();
...
}
And in the event onClick()
context.startActivity(new Intent(context, cardview_detalle.class));