code: @Override
  	public ViewHolder onCreateViewHolder(ViewGroup viewGroup, int viewType) {
  		// Create a new view.
  		View v = LayoutInflater.from(viewGroup.getContext())
  				.inflate(R.layout.rv_card, viewGroup, false);
  		ViewHolder viewHolder = new ViewHolder(v);
  
  		v.setOnClickListener(new View.OnClickListener() {
  			@Override
  			public void onClick(View v) {
  				int itemPosition = viewHolder.getAdapterPosition();
  
  				RecyclerAdapter.this.getJarr();
  				String id = jarr.get(itemPosition).asJsonObject().getString("id");
  				Log.d(TAG, "Element " + itemPosition + " clicked. with id : " + id);
  				MyJus.intructablesApi().info(id);
  				Fragment prevFragment = ((MainActivity) v.getContext())
  						.getSupportFragmentManager().findFragmentById(R.id.container);
  				Fragment fragment = DetailFragment.newInstance();
  				((MainActivity) v.getContext()).getSupportFragmentManager()
  						.beginTransaction()
  						.hide(prevFragment).add(R.id.container, fragment).addToBackStack(null)
  						.commit();
  			}
  		});
  
  		return viewHolder;
  	}
docs: Create new views (invoked by the layout manager)