title: How to recognize whether the Done button is clicked in ActionMode
body: <p>I use <code>ActionMode</code> to select items in a grid. The problem is that I cannot recognize whether exactly the <strong>Done</strong> button is clicked. The only I can is to know that <code>ActionMode</code> is finished. But pressing <strong>Back</strong> finishes the <code>ActionMode</code> too. 
  The desired behavior is to accept selection on <strong>Done</strong> click, and exit <code>ActionMode</code> on <strong>Back</strong> press.</p>
  
  <p>I tried to use <code>ActionMode.setCustomView()</code> but it doesn't affect the <strong>Done</strong> button. The <code>Activity.onBackPressed()</code> is not called when ActionMode is started.</p>
  
  <p>The one solution I've found is to use ActionBarSherlock and get the <strong>Done</strong> button manually:</p>
  
  <pre><code>View closeButton = findViewById(R.id.abs__action_mode_close_button); 
  </code></pre>
  
  <p>But it works on Android 2.x-3.x only, because on 4.x a native action bar is used.</p>