title: How to instantiate an anonymous class that implements an interface in Kotlin
body: <p>In Java, instantiate an interface object is as easy as <code>new Interface()</code>... and override all the required functions as below, on <code>AnimationListener</code></p>
  
  <pre><code>private void doingSomething(Context context) {
      Animation animation = AnimationUtils.loadAnimation(context, android.R.anim.fade_in);
      animation.setAnimationListener(new Animation.AnimationListener() {
          // All the other override functions
      });
  }
  </code></pre>
  
  <p>However, in Kotlin when we type</p>
  
  <pre><code>private fun doingSomething(context: Context) {
      val animation = AnimationUtils.loadAnimation(context, android.R.anim.fade_in)
      animation.setAnimationListener(Animation.AnimationListener(){
          // All the other override functions
      })
  }
  </code></pre>
  
  <p>It error complaints unresolved References AnimationListener.</p>