Skip to content

Instantly share code, notes, and snippets.

@zpalexander
Created October 6, 2015 21:08
Show Gist options
  • Save zpalexander/ac1134f04ad164ceb5c6 to your computer and use it in GitHub Desktop.
Save zpalexander/ac1134f04ad164ceb5c6 to your computer and use it in GitHub Desktop.
Click Listener for Webview
// Set the click listener for opening the slideshow
final int j = i;
slide.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(getActivity(), SlideshowWebview.class);
intent.putExtra("slideshowURL", cards[j].slideshowURL.toString());
intent.putExtra("slideshowTitle", cards[j].title.toString());
startActivity(intent);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment