Example #1
0
  private void repeatUpdateStats() {
    TextView view = (TextView) findViewById(R.id.totalClicks);
    view.setText(String.valueOf(clicks.getClicks()));

    view = (TextView) findViewById(R.id.timeDisplay);
    view.setText(periodFormat.print(period.normalizedStandard()));
  }
Example #2
0
 protected void updateTimes() {
   Period current = started == null ? new Period(0) : new Period(started, new DateTime());
   total.setText(Timer.format_full.print(period.plus(current).normalizedStandard(period_type)));
   time.setText(Timer.format_short.print(current.normalizedStandard(period_type)));
 }