I am new to Android programming and was working on a card layout. I was wondering, how do I make it clickable?
android:clickable=\"true\" android:foreground=\"?
You can use viewHolder class as follow
public ViewHolder(View itemLayoutView) { super(itemLayoutView); itemLayoutView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // perfoem your action here } }); }