Skip to content

Instantly share code, notes, and snippets.

@guuilp
Created December 3, 2016 18:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guuilp/2e5ee7ccffb281178b166184d8a95440 to your computer and use it in GitHub Desktop.
Save guuilp/2e5ee7ccffb281178b166184d8a95440 to your computer and use it in GitHub Desktop.
private NoticiaAdapter.NoticiaOnClickListener onClickNoticia() {
return new NoticiaAdapter.NoticiaOnClickListener() {
@Override
public void onClickNoticia(View view, int idx) {
Noticia c = noticias.get(idx);
Intent intent = new Intent(getContext(), NoticiaActivity.class);
intent.putExtra("noticia", c);
startActivity(intent);
}
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment