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