Skip to content

Instantly share code, notes, and snippets.

@slxny
Created May 23, 2017 15:53
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 slxny/e7ad7f54c98da2b31c540ad5a10972d7 to your computer and use it in GitHub Desktop.
Save slxny/e7ad7f54c98da2b31c540ad5a10972d7 to your computer and use it in GitHub Desktop.
playButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
//Enter intended consequences of clicking on playButton ImageView here
Log.v("Test: ", "Positive");
CountDownTimer countDownTimer = new CountDownTimer(100000, 100) {
@Override
public void onTick(long millisUntilFinished) {
TextView textView = (TextView) findViewById(R.id.main_timer_text);
textView.setText("Current Time: " + (millisUntilFinished / 1000) + " Seconds");
}
@Override
public void onFinish() {
}
}
.start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment