I have an event in my adapter that controls the click in the recyclerview items. I would like to know which code I should add when clicking the item, recycler view is hidden
@Override
public void onBindViewHolder(final SearchViewHolder holder, int position) {
holder.titulo.setText(nomeList.get(position));
holder.autor.setText(user_cadastroList.get(position));
holder.setItemClickListener(new ItemClickListener() {
@Override
public void onClick(View view, int position, boolean isLongClick) {
CadastrarAplicacao.getUsuario().setText(nomeList.get(position).toString());
//Depois disso queria ocultar a RecyclerView
}