Created
December 3, 2016 17:58
-
-
Save guuilp/e1a08afc383022e935bdd778afde3b43 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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