Skip to content

Instantly share code, notes, and snippets.

@nazmulidris
Created August 21, 2017 21:56
Show Gist options
  • Save nazmulidris/74dfab7654159cede948a91d04a8d259 to your computer and use it in GitHub Desktop.
Save nazmulidris/74dfab7654159cede948a91d04a8d259 to your computer and use it in GitHub Desktop.
mPauseButton.setOnClickListener(
new View.OnClickListener() {
@Override
public void onClick(View view) {
mPlayerAdapter.pause();
}
});
mPlayButton.setOnClickListener(
new View.OnClickListener() {
@Override
public void onClick(View view) {
mPlayerAdapter.play();
}
});
mResetButton.setOnClickListener(
new View.OnClickListener() {
@Override
public void onClick(View view) {
mPlayerAdapter.reset();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment