I am able to detect the individual recycler view item position and able to toast it on clicked. Now I wan't to move on to a new activity and show the details of the item clicked, how can I do that? Say, I am displaying Contact names list and onclick I wan't to open a new activity show that contact's details... At least, how can I toast the contact name again on clicking on that contact item, how are the current variables on clicking available to me? I am planning to bundle those variables and send them with intent and display there.
i know i have to implement here
public class RecyclerItemClickListener implements RecyclerView.OnItemTouchListener {
private OnItemClickListener mListener;
public interface OnItemClickListener {
public void onItemClick(View view, int position){
//i know i have to implement here
}
}