implements OnClickListener VS. new Button.OnClickListener() {};
<p>I have a question about implementing OnClickListeners for developing with the ADT. I'm unsure of which way is more efficient, can anyone please provide me with pro's and con's of each approach?</p>

<pre><code>class x extends Activity implements OnClickListener
{
  button.SetOnClickListener(this);
  OnclickListener(View v)
  {
    switch(v.getGetId());
    {
      case R.id.y:
      //do stuff here
      break;
      .
      .
      .
    }
  }

}
</code></pre>

<p>&lt;-VERSUS-></p>

<pre><code>class a extends Activity
{
   .
   .
   .
   btn.setOnClickListener(new Button.OnClickListener()
   {

    OnClickListener(View v)
    {
      //do stuff here
    }

   });

}
</code></pre>
