예제 #1
0
 public void setRequireSeconds(long requireSeconds) {
   this.requireSeconds = requireSeconds;
   if (requireSeconds == -1) {
     ((TextView) findViewById(R.id.text_tv))
         .setText(getContext().getString(R.string.string_best_time));
   } else {
     ((TextView) findViewById(R.id.text_tv))
         .setText(Utils.getTimeFromSeconds(requireSeconds - mTimer.getElapsedSeconds()));
   }
 }
예제 #2
0
 public void pause() {
   mTimer.pause();
 }
예제 #3
0
 public void start() {
   mTimer.start();
   ((TextView) findViewById(R.id.label_text_tv))
       .setText(getContext().getString(R.string.string_stop_timer));
 }