Create a detailed view of a selected cardview in a recyclerview

2

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

    
asked by Mihawk 19.05.2016 в 17:49
source

1 answer

0

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));
    
answered by 20.05.2016 / 23:47
source