Skip to content

Instantly share code, notes, and snippets.

@guuilp
Created December 3, 2016 17:58
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save guuilp/e1a08afc383022e935bdd778afde3b43 to your computer and use it in GitHub Desktop.
@Override
public void onBindViewHolder(final NoticiaViewHolder holder, final int position) {
//Click
if (noticiaOnClickListener != null){
holder.itemView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
//A variável position e final
noticiaOnClickListener.onClickNoticia(holder.itemView, position);
}
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment