title: Should we use anonymous classes for OnClickListeners or inner named classes?
body: <p>I have lots of buttons in my Activity, I have the following questions:</p>
  
  <ol>
  <li><p>Should I create multiple inner anonymous classes for OnClickListeners for each button, like below:</p>
  
  <pre><code>private View.OnClickListener mShuffleListener = new View.OnClickListener() {
      public void onClick(View v) {
          /// task to do
      }
  };
  </code></pre></li>
  <li><p>Or should I go for a named inner class and add an if condition to check which click listener was called.</p></li>
  </ol>
  
  <p>Which one is better to save memory resources?</p>