0
I have an event at my Adapter that controls the click in the items of recyclerview. I would like to know which code I should add that when clicking on the item, the Recycler view be 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
}