Ejemplo n.º 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()));
   }
 }
Ejemplo n.º 2
0
 public void pause() {
   mTimer.pause();
 }
Ejemplo n.º 3
0
 public void start() {
   mTimer.start();
   ((TextView) findViewById(R.id.label_text_tv))
       .setText(getContext().getString(R.string.string_stop_timer));
 }