title: How to create a simple countdown timer in Kotlin?
body: <p>I know how to create a simple countdown timer in Java. But I'd like to create this one in Kotlin.</p>
  <pre class="lang-kotlin prettyprint-override"><code>package android.os;
  
  new CountDownTimer(20000, 1000) {
      public void onTick(long millisUntilFinished) {
          mTextField.setText(&quot;seconds remaining: &quot; + millisUntilFinished / 1000);
      }
      public void onFinish() {
          mTextField.setText(&quot;Time's finished!&quot;);
      }
  }.start();
  </code></pre>
  <p>How can I do it using Kotlin?</p>