[postlink]
https://the-best-way-of-life-is-islam.blogspot.com/2015/07/android-onclicklistener-for.html
[/postlink]
What I want to do is set an onClickListener for an ImageView that is in an item in a recyclerview. I only want a click on that ImageView to do CODE A and click anywhere else to run CODE B. How can I do that? I am using:
public class RecyclerViewHolder extends RecyclerView.ViewHolder
and
public class RecyclerAdapter extends RecyclerView.Adapter<RecyclerAdapter.RecyclerViewHolder>
for my adapter and view holder.
Enregistrer un commentaire