I'm having a problem in a list where I use RecyclerView
, when clicking on an item in the list, OnClickListener
is treated in ViewHolder
of that RecyclerView
:
MyViewHolder:
public ClientesViewHolder(Context ctx, View itemView, Activity act) {
super(itemView);
itemView.setOnClickListener(this);
}
@Override
public void onClick(View v) {
Intent it = new Intent(ctx, TelaDadosClientes.class);
Bundle animacao = ActivityOptionsCompat.makeCustomAnimation(ctx, R.anim.slide_in_left, R.anim.slide_out_left).toBundle();
ActivityCompat.startActivity(activity, it, animacao);
}
Clicking on an item in the list opens a new activity
with an animation (which is not the case). My problem is that if I double-click an item in the list it opens twice the same% with%. How do I disable this double-tap (something like OnDoubleClickListener return false)?
NOTE: If you have not understood that I will give more details if necessary.